csx 3 anni fa
parent
commit
4d1b4780e0
1 ha cambiato i file con 3 aggiunte e 1 eliminazioni
  1. 3 1
      controllers/base_api_controller.go

+ 3 - 1
controllers/base_api_controller.go Vedi File

@@ -68,6 +68,7 @@ func (this *BaseAuthAPIController) Prepare() {
68 68
 	this.BaseAPIController.Prepare()
69 69
 	if this.GetAdminUserInfo() == nil {
70 70
 
71
+		//org_id, _ := beego.AppConfig.Int64("org_id")
71 72
 		org_id, _ := beego.AppConfig.Int64("org_id")
72 73
 
73 74
 		var userAdmin models.AdminUser
@@ -182,8 +183,9 @@ func (this *BaseServeAPIController) Prepare() {
182 183
 	this.BaseAPIController.Prepare()
183 184
 	if this.GetAdminUserInfo() == nil {
184 185
 		//org_id, _ := beego.AppConfig.Int64("org_id")
186
+		org_id, _ := beego.AppConfig.Int64("org_id")
185 187
 
186
-		org_id, _ := this.GetInt64("org_id")
188
+		//org_id, _ := this.GetInt64("org_id")
187 189
 		var userAdmin models.AdminUser
188 190
 		userAdmin.Id = 1448
189 191
 		userAdmin.Mobile = "13318599895"