moonsflyer 4 luni în urmă
părinte
comite
2bf87f8daf
1 a modificat fișierele cu 3 adăugiri și 7 ștergeri
  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)