ソースを参照

师傅端登录提示

whitefang 1 年間 前
コミット
d1e60b2f41
1 ファイル変更6 行追加1 行削除
  1. 6 1
      app/workerapi/validate/LoginAccountValidate.php

+ 6 - 1
app/workerapi/validate/LoginAccountValidate.php

@@ -5,6 +5,7 @@ use app\common\enum\LoginEnum;
 use app\common\enum\notice\NoticeEnum;
 use app\common\enum\notice\NoticeEnum;
 use app\common\enum\user\UserTerminalEnum;
 use app\common\enum\user\UserTerminalEnum;
 use app\common\enum\YesNoEnum;
 use app\common\enum\YesNoEnum;
+use app\common\model\master_worker_register\MasterWorkerRegister;
 use app\common\service\sms\SmsDriver;
 use app\common\service\sms\SmsDriver;
 use think\facade\Config;
 use think\facade\Config;
 use app\common\model\master_worker\MasterWorker;
 use app\common\model\master_worker\MasterWorker;
@@ -93,7 +94,11 @@ Class LoginAccountValidate  extends BaseValidate
             ->findOrEmpty();
             ->findOrEmpty();
 
 
         if ($userInfo->isEmpty()) {
         if ($userInfo->isEmpty()) {
-            return '用户不存在';
+            $worker_register = MasterWorkerRegister::where('mobile',$data['account'])->findOrEmpty();
+            if(!$worker_register->isEmpty() && $worker_register->status==0){
+                return '您的入驻信息正在审核中,客服将在1-2个工作日内联系您进行入驻操作';
+            }
+            return '请点击下方的工程师入驻';
         }
         }
 
 
         if ($userInfo['is_disable'] === YesNoEnum::YES) {
         if ($userInfo['is_disable'] === YesNoEnum::YES) {