moonsflyer 4 месяцев назад
Родитель
Сommit
2bf87f8daf
1 измененных файлов с 3 добавлено и 7 удалено
  1. 3 7
      phalapi/src/app/functions.php

+ 3 - 7
phalapi/src/app/functions.php

@@ -4432,15 +4432,11 @@ namespace App;
             ->fetchAll();
         $shop_list = [];
         foreach($rs as &$v){
-            $shopwhere =[];
-            $shopwhere[] = ['uid','=',$v['uid']];
+            $shopwhere['uid'] = $v['uid'];
             if(!empty($province)){
-                $shopwhere[]=['province','=',$province];
-            }
-
-            if(!empty($name)){
-                $shopwhere[]=['name','like','%'.$name.'%'];
+                $shopwhere['province']=$province;
             }
+            
             $shop_info=\PhalApi\DI()->notorm->shop_apply
                 ->select('uid,name,thumb,username,sale_nums,service_points,province')
                 ->where($shopwhere)