From f8d923197c5421bc240dc9451672c5e977cd241e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A1=80=E5=B0=BC=E9=BE=9F?= <365252428@qq.com> Date: Fri, 27 Jun 2025 17:05:09 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=9F=AD=E4=BF=A1=E6=A8=A1?= =?UTF-8?q?=E6=9D=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/common/verifica/mobile.go | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/pkg/common/verifica/mobile.go b/pkg/common/verifica/mobile.go index 7b52de0..d4d7447 100644 --- a/pkg/common/verifica/mobile.go +++ b/pkg/common/verifica/mobile.go @@ -13,7 +13,7 @@ const SIG_NO = 145031 const SIG_NO_SELLER = 159789 func SendMsg(telNum string, project string) (string, error) { - + TMP := 277455 var sigNo uint sigNo = SIG_NO @@ -28,7 +28,7 @@ func SendMsg(telNum string, project string) (string, error) { code := mobile.RandCode() //content := "验证码模板:尊敬的用户,您的验证码为$$,15分钟内有效,请勿泄露。" - fmt.Println("发送短信请求参数:", telNum, mobile.TMP1, sigNo, code) + fmt.Println("发送短信请求参数:", telNum, TMP, sigNo, code) /** TODO @@ -40,13 +40,14 @@ func SendMsg(telNum string, project string) (string, error) { } */ - fmt.Println("发送短信请求参数:", telNum, mobile.TMP1, sigNo, code) - return code, mobileTemplate.Send(telNum, mobile.TMP1, sigNo, code) + fmt.Println("发送短信请求参数:", telNum, TMP, sigNo, code) + return code, mobileTemplate.Send(telNum, uint(TMP), sigNo, code) } func SendMsgV2(telNum string, project string, tempSignNo uint) (string, error) { + TMP := 277455 var sigNo uint sigNo = SIG_NO //if project == "seller" { @@ -71,9 +72,8 @@ func SendMsgV2(telNum string, project string, tempSignNo uint) (string, error) { return code, nil } */ - - fmt.Println("发送短信请求参数:", telNum, mobile.TMP1, sigNo, code) - return code, mobileTemplate.Send(telNum, mobile.TMP1, sigNo, code) + fmt.Println("发送短信请求参数:", telNum, TMP, sigNo, code) + return code, mobileTemplate.Send(telNum, uint(TMP), sigNo, code) //fmt.Println("发送短信请求参数:", telNum, mobile.Sign, mobile.AlTMP1, code) //return code, mobileTemplate.SendAlSms(telNum, mobile.Sign, mobile.AlTMP1, code)