csx 3 年 前
コミット
4d1b4780e0
共有1 個のファイルを変更した3 個の追加1 個の削除を含む
  1. 3 1
      controllers/base_api_controller.go

+ 3 - 1
controllers/base_api_controller.go ファイルの表示

@@ -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"