diff --git a/library/sms/client.go b/library/sms/client.go index 550489e2..8021305f 100644 --- a/library/sms/client.go +++ b/library/sms/client.go @@ -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("短信发送失败")