Bladeren bron

暂时取消电路初审和复审的短信提醒

sugangqiang 1 jaar geleden
bovenliggende
commit
b52ff294c4
2 gewijzigde bestanden met toevoegingen van 3 en 2 verwijderingen
  1. 2 2
      app/command/FstVerifyChecker.php
  2. 1 0
      app/command/ReVerifyChecker.php

+ 2 - 2
app/command/FstVerifyChecker.php

@@ -26,7 +26,6 @@ class FstVerifyChecker extends Command {
         // 指令配置
         $this->setName('FstVerifyChecker')
                 ->setDescription('First Verify Checker');
-
     }
 
     protected function execute(Input $input, Output $output) {
@@ -68,7 +67,8 @@ class FstVerifyChecker extends Command {
                     break;
                 case 2:
                     if ($ic_count > 0 && $user["phone"]) {
-                        queue("app\job\Messenger", ["type" => 2, "userId" => $user["id"], "name" => $user["name"], "phone" => $user["phone"], "count" => $ic_count]);
+                        //电路先不发短信
+                        //queue("app\job\Messenger", ["type" => 2, "userId" => $user["id"], "name" => $user["name"], "phone" => $user["phone"], "count" => $ic_count]);
                     }
                     break;
             }

+ 1 - 0
app/command/ReVerifyChecker.php

@@ -32,6 +32,7 @@ class ReVerifyChecker extends Command {
         $whereRaw = sprintf("(tl.state in (14,15,16)) or (tl.state=12 and ti.pass_dept_check=0) or (tl.state=10 and ti.pass_dept_check=1) or (tl.state=10 and (tc.companyIds is null or tc.companyIds = ''))");
         //$whereRaw = sprintf("(ti.checkState in (14,15,16)) or (ti.checkState=12 and ti.pass_dept_check=0) or (ti.checkState=10 and ti.pass_dept_check=1) or (ti.checkState=10 and (tc.companyIds is null or tc.companyIds = ''))");
         $where[] = ["ti.checkState", "in", [TalentState::FST_VERIFY_PASS, TalentState::DEPT_VERIFY_PASS]];
+        $where[] = ["e.type", "=", 1]; //只对晋江人才相关部门发送短信
         $list = Talent::alias("ti")
                         ->leftJoin("new_talent_condition tc", "tc.id=ti.talent_condition")
                         ->leftJoin("un_enterprise e", "e.id=ti.enterprise_id")