This commit is contained in:
parent
1940ea3524
commit
8af9117ba1
|
@ -32,8 +32,8 @@ func Init(cfg *configcenter.DysmsapiConfig) (err error) {
|
|||
return
|
||||
}
|
||||
|
||||
func SendSms(request *dysmsapi.SendSmsRequest) (_result *dysmsapi.SendSmsResponse, err error) {
|
||||
_result, err = defaultDysmsapiClient.SendSms(request)
|
||||
func SendSms(request *dysmsapi.SendSmsRequest) (err error) {
|
||||
_result, err := defaultDysmsapiClient.SendSms(request)
|
||||
logger.Info("SendSms result:%v", _result)
|
||||
if _result == nil || _result.Body == nil {
|
||||
return fmt.Errorf("短信发送失败")
|
||||
|
|
Loading…
Reference in New Issue