调试收银台短信验证

This commit is contained in:
liu 2024-06-26 16:30:06 +08:00
parent fc36227b33
commit 338354ee77

View File

@ -47,7 +47,7 @@ class SmsService
public function client($phone,$template,$code,$type = 0)
{
// try{
try{
$easySms = new EasySms($this->config);
if($type){//预留发送到货短信
@ -67,16 +67,17 @@ class SmsService
'code' => $code
],
]);
}d($res);
}
if($res && $res['aliyun']['status'] == 'success'){
return true;
}else{
return false;
}
// }catch(NoGatewayAvailableException $e){
// throw new BusinessException($e->getExceptions());
// }
}catch(NoGatewayAvailableException $e){
d($e);
throw new BusinessException($e->getExceptions());
}
}
}