|
@@ -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) {
|