验证数据

This commit is contained in:
hoteas
2022-05-03 15:17:27 +08:00
parent 58da542533
commit 7d36ad95a7
26 changed files with 106 additions and 1828 deletions
-4
View File
@@ -9,10 +9,6 @@ var Sms = Ctr{
//只允许微信验证过的或者登录成功的发送短信
"send": func(that *Context) {
if len(that.Req.FormValue("token")) != 32 {
that.Display(2, "没有授权")
return
}
if that.Session("wechat_id").Data == nil && that.Session("user_id").Data == nil {
that.Display(2, "没有登录不可发送短信")
return