验证数据

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 -4
View File
@@ -7,7 +7,7 @@ import (
var OrderCtr = Ctr{
"info": func(that *Context) {
if that.Session("salesman_id").Data != nil {
if that.Session("salesman_id").Data == nil {
that.Display(2, "没有登录")
return
}
@@ -39,7 +39,7 @@ var OrderCtr = Ctr{
that.Display(0, res)
},
"create_order_record": func(that *Context) {
if that.Session("salesman_id").Data != nil {
if that.Session("salesman_id").Data == nil {
that.Display(2, "没有登录")
return
}
@@ -87,7 +87,7 @@ var OrderCtr = Ctr{
},
"edit": func(that *Context) {
if that.Session("salesman_id").Data != nil {
if that.Session("salesman_id").Data == nil {
that.Display(2, "没有登录")
return
}
@@ -160,7 +160,7 @@ var OrderCtr = Ctr{
//用户微信公众号或者小程序登录
"search": func(that *Context) {
if that.Session("salesman_id").Data != nil {
if that.Session("salesman_id").Data == nil {
that.Display(2, "没有登录")
return
}