|
|
@@ -30,6 +30,7 @@ class DemoController extends Controller {
|
|
|
$request['statuss'] = isset($req->statuss) ? trim($req->statuss) : null;
|
|
|
$request['cash_small'] = isset($req->cash_small) ? trim($req->cash_small) : null;
|
|
|
$request['cash_big'] = isset($req->cash_big) ? trim($req->cash_big) : null;
|
|
|
+ $request['sureblurs'] = isset($req->sureblurs) ? $req->sureblurs : 'on';
|
|
|
|
|
|
$dt = \App\Lib\DataTable\DataTable::init();
|
|
|
$dt->setDataSource('/admin/demo/demo');
|
|
|
@@ -150,10 +151,12 @@ class DemoController extends Controller {
|
|
|
$statuss = Request::has('statuss') ? Request::get('statuss') : '';
|
|
|
$cash_small = Request::has('cash_small') ? Request::get('cash_small') : '';
|
|
|
$cash_big = Request::has('cash_big') ? Request::get('cash_big') : '';
|
|
|
- $sureblur = Request::has('sureblur') ? Request::get('sureblur') : '';
|
|
|
+ $sureblur = Request::has('sureblurs') ? Request::get('sureblurs') : 'off';
|
|
|
$where = array();
|
|
|
+
|
|
|
if (!empty($account)) {
|
|
|
- if (empty($sureblur) || $sureblur == '模糊') {
|
|
|
+ $account = strtolower($account);
|
|
|
+ if (empty($sureblur) || $sureblur == 'off') {
|
|
|
$where[] = array('account', 'like', '%' . $account . '%');
|
|
|
} else {
|
|
|
$where[] = array('account', '=', $account);
|
|
|
@@ -174,7 +177,11 @@ class DemoController extends Controller {
|
|
|
$where[] = array('register_time', '<=', $regist_endtime);
|
|
|
}
|
|
|
if (!empty($statuss)) {
|
|
|
- $where[] = array('statuss', '=', $statuss);
|
|
|
+ if($statuss == 2){
|
|
|
+ $where[] = array('statuss', '!=', 1);
|
|
|
+ }else{
|
|
|
+ $where[] = array('statuss', '=', $statuss);
|
|
|
+ }
|
|
|
}
|
|
|
if (!empty($cash_small)) {
|
|
|
$where[] = array('cash', '>=', $cash_small);
|
|
|
@@ -182,7 +189,6 @@ class DemoController extends Controller {
|
|
|
if (!empty($cash_big)) {
|
|
|
$where[] = array('cash', '<=', $cash_big);
|
|
|
}
|
|
|
-
|
|
|
$db = new \App\Models\Account;
|
|
|
$data = $db->demo_account($list, $page, $where);
|
|
|
if (!($data < 0)&&is_array($data)&&count($data)>0&&is_array($data['data'])&&count($data['data'])>0) {
|