短信变更
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, "发送成功")
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user