|
@@ -188,11 +188,14 @@ class push_helper
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
- if(!empty($sms_type)) {
|
|
|
+ if(!empty($sms_type) && $alias_info->can_sms()) {
|
|
|
$sms_param['mobile'] = $mobile;
|
|
|
$sms_param['type'] = $sms_type;
|
|
|
QueueClient::push('sendSMS',$sms_param);
|
|
|
}
|
|
|
+ else {
|
|
|
+ QueueClient::push('upushSendMsg',$push_param);
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
else
|
|
@@ -203,10 +206,14 @@ class push_helper
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
- if(!empty($sms_type)) {
|
|
|
+ if(!empty($sms_type) && $alias_info->can_sms()) {
|
|
|
$sms = new Sms();
|
|
|
$status = $sms->send_oper($mobile,$sms_type,$sms_param);
|
|
|
}
|
|
|
+ else {
|
|
|
+ $push = new push_sender();
|
|
|
+ $status = $push->send($push_param,$client_type);
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|