短信变更

This commit is contained in:
hoteas
2021-09-24 15:01:03 +08:00
parent 2291ba7402
commit d1a8f6c668
4 changed files with 16 additions and 3 deletions
+6 -1
View File
@@ -2,6 +2,7 @@ package app
import (
. "../../../hotime"
"../../dri/ddsms"
)
var Sms = Ctr{
@@ -25,7 +26,11 @@ var Sms = Ctr{
this.Session("phone", phone)
this.Session("code", code)
tencentSendYzm(phone, code)
//tencentSendYzm(phone, code)
if ddsms.DefaultDDY.ApiKey == "" {
ddsms.DefaultDDY.Init(this.Config.GetString("smsKey"))
}
ddsms.DefaultDDY.SendYZM(phone, this.Config.GetString("smsLogin"), map[string]string{"code": code})
this.Display(0, "发送成功")
},
BIN
View File
Binary file not shown.
+2
View File
@@ -45,5 +45,7 @@
"mode": 2,
"port": "80",
"sessionName": "HOTIME",
"smsKey": "b0eb4bf0198b9983cffcb85b69fdf4fa",
"smsLogin": "【恩易办】您的验证码为:{code},请在5分钟内使用,切勿将验证码泄露于他人,如非本人操作请忽略。",
"tpt": "tpt"
}