moonsflyer 5 月之前
父節點
當前提交
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)