瀏覽代碼

手机号

shish 3 年之前
父節點
當前提交
f22177f075
共有 1 個文件被更改,包括 6 次插入0 次删除
  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 bizGhs\custom\classes\CustomClass;
 use bizHd\admin\services\ShopAdminService;
 use bizHd\admin\services\ShopAdminService;
 use bizHd\saas\classes\ApplyClass;
 use bizHd\saas\classes\ApplyClass;
+use common\components\stringUtil;
 use common\components\util;
 use common\components\util;
 use Yii;
 use Yii;
 
 
@@ -19,8 +20,13 @@ class ShopAdminController extends BaseController
     //员工列表 ssh 2019.12.8
     //员工列表 ssh 2019.12.8
     public function actionList()
     public function actionList()
     {
     {
+        $get = Yii::$app->request->get();
         $where = [];
         $where = [];
         $where['delStatus'] = 0;
         $where['delStatus'] = 0;
+        $mobile = $get['mobile'] ?? '';
+        if (!empty($mobile) && stringUtil::isMobile($mobile)) {
+            $where['mobile'] = $mobile;
+        }
         $list = ShopAdminService::getAdminList($where);
         $list = ShopAdminService::getAdminList($where);
         util::success($list);
         util::success($list);
     }
     }