zqbao 9 сар өмнө
parent
commit
4bdfea693d

+ 9 - 0
controllers/mini_config.go

@@ -56,6 +56,15 @@ func (this *MiniConfigController) MiniConfig() {
 	}, response.MiniConfigResp{
 		ConfKey: "MostReport",
 		ConfVal: miniConf["MostReport"],
+	}, response.MiniConfigResp{
+		ConfKey: "ServicePhone",
+		ConfVal: miniConf["ServicePhone"],
+	}, response.MiniConfigResp{
+		ConfKey: "Colors",
+		ConfVal: miniConf["Colors"],
+	}, response.MiniConfigResp{
+		ConfKey: "EmptyImg",
+		ConfVal: miniConf["EmptyImg"],
 	})
 
 	br.Data = list

+ 1 - 1
controllers/user.go

@@ -581,7 +581,7 @@ func (this *UserAuthController) PurchasedPermission() {
 			Child:             make([]*models.ChartPermissionTreeView, 0),
 		}
 		for _, vv := range v.Child {
-			if _, ok := permissionMap[vv.ChartPermissionId]; ok {
+			if _, ok := permissionMap[vv.ChartPermissionId]; ok && vv.ParentId != 0 {
 				curPermissionView.Child = append(curPermissionView.Child, v)
 				IsAdd = true
 			}