qiuenguang 1 жил өмнө
parent
commit
ee71404e41

+ 2 - 1
application/api/controller/LargeWasteRewardPunish.php

@@ -90,6 +90,7 @@ class LargeWasteRewardPunish extends Api
             $this->error('请求方式错误');
             $this->error('请求方式错误');
         }
         }
         $req = $this->request->param();
         $req = $this->request->param();
+        $rq = $req['date'];
         $page = 1;
         $page = 1;
         $limit = 15;
         $limit = 15;
         if (isset($req['page']) && !empty($req['page'])) $page = $req['page'];
         if (isset($req['page']) && !empty($req['page'])) $page = $req['page'];
@@ -98,7 +99,7 @@ class LargeWasteRewardPunish extends Api
         $req['date'] = str_replace('.','-',$date);
         $req['date'] = str_replace('.','-',$date);
         $where = [];
         $where = [];
         if (isset($req['date']) && !empty($req['date'])){
         if (isset($req['date']) && !empty($req['date'])){
-            if (preg_match('/[\x{4e00}-\x{9fa5}]/u', $req['date']) > 0){
+            if (preg_match('/[\x{4e00}-\x{9fa5}]/u', $rq)>0){
                 $where['sys_rq'] = ['LIKE',$req['date'].'%'];
                 $where['sys_rq'] = ['LIKE',$req['date'].'%'];
             }else{
             }else{
                 $where['sczl_rq'] = ['LIKE',$req['date'].'%'];
                 $where['sczl_rq'] = ['LIKE',$req['date'].'%'];