短信变更
This commit is contained in:
+6
-1
@@ -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, "发送成功")
|
||||
},
|
||||
|
||||
Binary file not shown.
@@ -45,5 +45,7 @@
|
||||
"mode": 2,
|
||||
"port": "80",
|
||||
"sessionName": "HOTIME",
|
||||
"smsKey": "b0eb4bf0198b9983cffcb85b69fdf4fa",
|
||||
"smsLogin": "【恩易办】您的验证码为:{code},请在5分钟内使用,切勿将验证码泄露于他人,如非本人操作请忽略。",
|
||||
"tpt": "tpt"
|
||||
}
|
||||
Reference in New Issue
Block a user