修复bug
This commit is contained in:
@@ -26,10 +26,6 @@ var Sms = Ctr{
|
||||
this.Session("phone", phone)
|
||||
this.Session("code", 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