短信变更

This commit is contained in:
hoteas
2021-09-24 15:01:03 +08:00
parent c8c5f453d5
commit faddd72fee
3 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, "发送成功")
},