linwu 5 dagar sedan
förälder
incheckning
6ab078b43d
1 ändrade filer med 3 tillägg och 2 borttagningar
  1. 3 2
      api/crontab/controller/TalentController.php

+ 3 - 2
api/crontab/controller/TalentController.php

@@ -25,6 +25,7 @@ class TalentController
     {
         $this->_dealRateMsg();
 //        $this->_test();
+        return 'OK';
     }
 
     /**
@@ -40,9 +41,9 @@ class TalentController
             ->whereBetween('create_time', [$yesterday . ' 00:00:00', $yesterday . ' 23:59:59'])
             ->select();
 
-        //短信
-        $sms = new Sms();
         if (!$list->isEmpty()) {
+            //短信
+            $sms = new Sms();
             foreach ($list as $v) {
                 $sms->send($v['appointment']['talent']['mobile'],'talent_appointment_end');
             }