Browse Source

11月8日库存管理

XMLWAN 3 years ago
parent
commit
a1c4cc5d03
1 changed files with 4 additions and 0 deletions
  1. 4 0
      controllers/new_mobile_api_controllers/home_api_controller.go

+ 4 - 0
controllers/new_mobile_api_controllers/home_api_controller.go View File

@@ -86,6 +86,7 @@ func (this *HomeController) GetHomeData() {
86 86
 		_, errcode := service.GetOrgFollowIsExist(adminUserInfo.Org.Id)
87 87
 		if errcode == gorm.ErrRecordNotFound {
88 88
 			information, _ := service.GetAdminUserRoleInformation(0)
89
+			username, _ := service.GetMyOrgInformationFour(adminUserInfo.AdminUser.Id, adminUserInfo.Org.Id)
89 90
 			this.ServeSuccessJSON(map[string]interface{}{
90 91
 				"orgs":            orgs,
91 92
 				"apps":            apps,
@@ -94,9 +95,11 @@ func (this *HomeController) GetHomeData() {
94 95
 				"isSubSuperAdmin": isSubSuperAdmin,
95 96
 				"cretor":          cretor,
96 97
 				"information":     information,
98
+				"username":        username,
97 99
 			})
98 100
 		} else if errcode == nil {
99 101
 			information, _ := service.GetAdminUserRoleInformation(adminUserInfo.Org.Id)
102
+			username, _ := service.GetMyOrgInformationFour(adminUserInfo.AdminUser.Id, adminUserInfo.Org.Id)
100 103
 			this.ServeSuccessJSON(map[string]interface{}{
101 104
 				"orgs":            orgs,
102 105
 				"apps":            apps,
@@ -105,6 +108,7 @@ func (this *HomeController) GetHomeData() {
105 108
 				"isSubSuperAdmin": isSubSuperAdmin,
106 109
 				"cretor":          cretor,
107 110
 				"information":     information,
111
+				"username":        username,
108 112
 			})
109 113
 		}
110 114