Browse Source

Merge branch 'master' of http://git.shengws.com/csx/XT_Admin_Api

csx 5 years ago
parent
commit
ffeebfb5db
1 changed files with 2 additions and 1 deletions
  1. 2 1
      controllers/admin_api_controllers/admin_api_base_controller.go

+ 2 - 1
controllers/admin_api_controllers/admin_api_base_controller.go View File

4
 	"XT_Admin_Api/controllers"
4
 	"XT_Admin_Api/controllers"
5
 	"XT_Admin_Api/enums"
5
 	"XT_Admin_Api/enums"
6
 	"XT_Admin_Api/models/admin_models"
6
 	"XT_Admin_Api/models/admin_models"
7
+	"fmt"
7
 )
8
 )
8
 
9
 
9
 type AdminBaseAPIController struct {
10
 type AdminBaseAPIController struct {
49
 
50
 
50
 func (this *AdminBaseAPIAuthController) Prepare() {
51
 func (this *AdminBaseAPIAuthController) Prepare() {
51
 	this.AdminBaseAPIController.Prepare()
52
 	this.AdminBaseAPIController.Prepare()
52
-
53
+    fmt.Println("aaa")
53
 	adminInfo := this.GetAdminInfo()
54
 	adminInfo := this.GetAdminInfo()
54
 	if adminInfo == nil {
55
 	if adminInfo == nil {
55
 		this.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeNotLogin)
56
 		this.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeNotLogin)