shish 3 tahun lalu
induk
melakukan
f22177f075
1 mengubah file dengan 6 tambahan dan 0 penghapusan
  1. 6 0
      app-pt/controllers/ShopAdminController.php

+ 6 - 0
app-pt/controllers/ShopAdminController.php

@@ -10,6 +10,7 @@ use biz\sj\classes\SjClass;
 use bizGhs\custom\classes\CustomClass;
 use bizHd\admin\services\ShopAdminService;
 use bizHd\saas\classes\ApplyClass;
+use common\components\stringUtil;
 use common\components\util;
 use Yii;
 
@@ -19,8 +20,13 @@ class ShopAdminController extends BaseController
     //员工列表 ssh 2019.12.8
     public function actionList()
     {
+        $get = Yii::$app->request->get();
         $where = [];
         $where['delStatus'] = 0;
+        $mobile = $get['mobile'] ?? '';
+        if (!empty($mobile) && stringUtil::isMobile($mobile)) {
+            $where['mobile'] = $mobile;
+        }
         $list = ShopAdminService::getAdminList($where);
         util::success($list);
     }