调试
This commit is contained in:
parent
4cb0f02df1
commit
fc36227b33
@ -47,7 +47,7 @@ class SmsService
|
|||||||
|
|
||||||
public function client($phone,$template,$code,$type = 0)
|
public function client($phone,$template,$code,$type = 0)
|
||||||
{
|
{
|
||||||
try{
|
// try{
|
||||||
$easySms = new EasySms($this->config);
|
$easySms = new EasySms($this->config);
|
||||||
|
|
||||||
if($type){//预留发送到货短信
|
if($type){//预留发送到货短信
|
||||||
@ -67,16 +67,16 @@ class SmsService
|
|||||||
'code' => $code
|
'code' => $code
|
||||||
],
|
],
|
||||||
]);
|
]);
|
||||||
}
|
}d($res);
|
||||||
|
|
||||||
if($res && $res['aliyun']['status'] == 'success'){
|
if($res && $res['aliyun']['status'] == 'success'){
|
||||||
return true;
|
return true;
|
||||||
}else{
|
}else{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}catch(NoGatewayAvailableException $e){
|
// }catch(NoGatewayAvailableException $e){
|
||||||
throw new BusinessException($e->getExceptions());
|
// throw new BusinessException($e->getExceptions());
|
||||||
}
|
// }
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user