Ver Fonte

修改字段

bianjunhui há 1 ano atrás
pai
commit
96a297718b
2 ficheiros alterados com 3 adições e 3 exclusões
  1. 2 2
      application/api/common.php
  2. 1 1
      application/api/controller/Assms.php

+ 2 - 2
application/api/common.php

@@ -56,10 +56,10 @@ function getCountryMobile($countryCode){
         $country=$lists['iso3_code'];
         $countrys =array_keys($countrys_en,$country,true);
     }
-    if($countrys[0]){
+    if(isset($countrys[0])){
         $countryMobile =getCountryCode($countrys[0]);
     }else{
-        $countryMobile ='+1';
+        $countryMobile ='+9';
     }
     $countryMobile = str_replace('+','',$countryMobile);
     return (int)$countryMobile;

+ 1 - 1
application/api/controller/Assms.php

@@ -100,7 +100,7 @@ class Assms extends Api
         }
         // 1.当前任务将由哪个类来负责处理。
         //   当轮到该任务时,系统将生成一个该类的实例,并调用其 fire 方法
-        $jobHandlerClassName  ='as\app\job\Smssend';
+        $jobHandlerClassName  ='app\job\Sendsms';
         // 2.当前任务归属的队列名称,如果为新队列,会自动创建
         $jobQueueName     = "createSmsJob";
         $new=array();