修改短信模板
This commit is contained in:
parent
cbc6a53731
commit
f8d923197c
@ -13,7 +13,7 @@ const SIG_NO = 145031
|
|||||||
const SIG_NO_SELLER = 159789
|
const SIG_NO_SELLER = 159789
|
||||||
|
|
||||||
func SendMsg(telNum string, project string) (string, error) {
|
func SendMsg(telNum string, project string) (string, error) {
|
||||||
|
TMP := 277455
|
||||||
var sigNo uint
|
var sigNo uint
|
||||||
sigNo = SIG_NO
|
sigNo = SIG_NO
|
||||||
|
|
||||||
@ -28,7 +28,7 @@ func SendMsg(telNum string, project string) (string, error) {
|
|||||||
|
|
||||||
code := mobile.RandCode()
|
code := mobile.RandCode()
|
||||||
//content := "验证码模板:尊敬的用户,您的验证码为$$,15分钟内有效,请勿泄露。"
|
//content := "验证码模板:尊敬的用户,您的验证码为$$,15分钟内有效,请勿泄露。"
|
||||||
fmt.Println("发送短信请求参数:", telNum, mobile.TMP1, sigNo, code)
|
fmt.Println("发送短信请求参数:", telNum, TMP, sigNo, code)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
TODO
|
TODO
|
||||||
@ -40,13 +40,14 @@ func SendMsg(telNum string, project string) (string, error) {
|
|||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
fmt.Println("发送短信请求参数:", telNum, mobile.TMP1, sigNo, code)
|
fmt.Println("发送短信请求参数:", telNum, TMP, sigNo, code)
|
||||||
return code, mobileTemplate.Send(telNum, mobile.TMP1, sigNo, code)
|
return code, mobileTemplate.Send(telNum, uint(TMP), sigNo, code)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func SendMsgV2(telNum string, project string, tempSignNo uint) (string, error) {
|
func SendMsgV2(telNum string, project string, tempSignNo uint) (string, error) {
|
||||||
|
|
||||||
|
TMP := 277455
|
||||||
var sigNo uint
|
var sigNo uint
|
||||||
sigNo = SIG_NO
|
sigNo = SIG_NO
|
||||||
//if project == "seller" {
|
//if project == "seller" {
|
||||||
@ -71,9 +72,8 @@ func SendMsgV2(telNum string, project string, tempSignNo uint) (string, error) {
|
|||||||
return code, nil
|
return code, nil
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
|
fmt.Println("发送短信请求参数:", telNum, TMP, sigNo, code)
|
||||||
fmt.Println("发送短信请求参数:", telNum, mobile.TMP1, sigNo, code)
|
return code, mobileTemplate.Send(telNum, uint(TMP), sigNo, code)
|
||||||
return code, mobileTemplate.Send(telNum, mobile.TMP1, sigNo, code)
|
|
||||||
//fmt.Println("发送短信请求参数:", telNum, mobile.Sign, mobile.AlTMP1, code)
|
//fmt.Println("发送短信请求参数:", telNum, mobile.Sign, mobile.AlTMP1, code)
|
||||||
//return code, mobileTemplate.SendAlSms(telNum, mobile.Sign, mobile.AlTMP1, code)
|
//return code, mobileTemplate.SendAlSms(telNum, mobile.Sign, mobile.AlTMP1, code)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user