moonsflyer 4 ay önce
ebeveyn
işleme
2bf87f8daf
1 değiştirilmiş dosya ile 3 ekleme ve 7 silme
  1. 3 7
      phalapi/src/app/functions.php

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

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