This commit is contained in:
Leufolium 2024-09-25 13:25:09 +08:00
parent 1940ea3524
commit 8af9117ba1
1 changed files with 2 additions and 2 deletions

View File

@ -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("短信发送失败")