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)