系统优化

This commit is contained in:
hoteas
2022-04-20 18:36:05 +08:00
parent c368619e51
commit 3fdc3aac2e
9 changed files with 1701 additions and 13 deletions
+29
View File
@@ -0,0 +1,29 @@
package app
import (
. "code.hoteas.com/golang/hotime"
)
var Sms = Ctr{
//只允许微信验证过的或者登录成功的发送短信
//"send": func(this *Context) {
//
// if len(this.Req.FormValue("token")) != 32 {
// this.Display(2, "没有授权")
// return
// }
//
// phone := this.Req.FormValue("phone")
// if len(phone) < 11 {
// this.Display(3, "手机号格式错误")
// return
// }
// code := getCode()
// this.Session("phone", phone)
// this.Session("code", code)
//
// ddsms.DDY.SendYZM(phone, this.Config.GetString("smsLogin"), map[string]string{"code": code})
//
// this.Display(0, "发送成功")
//},
}