bianjunhui 2 年 前
コミット
4b69bfdb7e
1 ファイル変更3 行追加3 行削除
  1. 3 3
      application/module/ctrl/Send_sms_adminAction.class.php

+ 3 - 3
application/module/ctrl/Send_sms_adminAction.class.php

@@ -233,7 +233,6 @@ class Send_sms_adminAction extends Action
         foreach ($city_code as $v){
             $new[]=$v['code'];
         }
-        $is_send=1;
         do {
             try {
                 $n        = ($page-1)*$pageSize;
@@ -241,12 +240,13 @@ class Send_sms_adminAction extends Action
                 $customer_list = $admin->selesctSmsCustomer($where,$limit);
                 foreach ($customer_list as $vs){
                     $countryMobile = $this->getCountryMobile($vs['country']);
-                    $tel=$this->checkMobileCode($vs['tel']);
                     if($countryMobile==1){
                         $tel=$this->checkMobileCode($vs['tel']);
                         $is_send =$this->getSend($tel,$new);
+                        if($is_send==2){
+                            $admin->upCodeSmsCustomer($is_send,$vs['id'],$tel);
+                        }
                     }
-                    $admin->upCodeSmsCustomer($is_send,$vs['id'],$tel);
                 }
                 $page=$page+1;
             } catch (\Exception $e) {