瀏覽代碼

wip:权限处理

WH01243 3 年之前
父節點
當前提交
2fb8a49a45
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/jfw/front/dataExport.go

+ 2 - 2
src/jfw/front/dataExport.go

@@ -863,7 +863,7 @@ func (this *DataExport) GetPcEntAuth() {
 							isNew = true
 							isNew = true
 						}
 						}
 						entnicheMenu = true
 						entnicheMenu = true
-                }
+					}
 					break
 					break
 				}
 				}
 			}
 			}
@@ -873,7 +873,7 @@ func (this *DataExport) GetPcEntAuth() {
 			if user != nil && len(*user) > 0 {
 			if user != nil && len(*user) > 0 {
 				for _, v := range *user {
 				for _, v := range *user {
 					if pcUsers[util.IntAll(v["ent_id"])] {
 					if pcUsers[util.IntAll(v["ent_id"])] {
-						ents := public.Mysql.SelectBySql("select status,id,createtime,isNew from entniche_info where id=? ", util.IntAll(v["ent_id"]))
+						ents := public.Mysql.SelectBySql("select status,id,createtime,isNew from entniche_info where id=?  ORDER BY   power desc", util.IntAll(v["ent_id"]))
 						if ents != nil && len(*ents) != 0 {
 						if ents != nil && len(*ents) != 0 {
 							for _, vv := range *ents {
 							for _, vv := range *ents {
 								if util.IntAll(vv["status"]) == 1 {
 								if util.IntAll(vv["status"]) == 1 {