From 8af9117ba17257481d5091b7c976a3d5a5701f34 Mon Sep 17 00:00:00 2001 From: Leufolium Date: Wed, 25 Sep 2024 13:25:09 +0800 Subject: [PATCH] 1 --- library/sms/client.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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("短信发送失败")