diff --git a/com.actionsoft.apps.coe.pal/lib/com.actionsoft.apps.coe.pal.jar b/com.actionsoft.apps.coe.pal/lib/com.actionsoft.apps.coe.pal.jar index 61932885..33503cb5 100644 Binary files a/com.actionsoft.apps.coe.pal/lib/com.actionsoft.apps.coe.pal.jar and b/com.actionsoft.apps.coe.pal/lib/com.actionsoft.apps.coe.pal.jar differ diff --git a/com.actionsoft.apps.coe.pal/src/com/actionsoft/apps/coe/pal/cooperation/CoeCooperationAPIManager.java b/com.actionsoft.apps.coe.pal/src/com/actionsoft/apps/coe/pal/cooperation/CoeCooperationAPIManager.java index a69ff889..63f83bb0 100644 --- a/com.actionsoft.apps.coe.pal/src/com/actionsoft/apps/coe/pal/cooperation/CoeCooperationAPIManager.java +++ b/com.actionsoft.apps.coe.pal/src/com/actionsoft/apps/coe/pal/cooperation/CoeCooperationAPIManager.java @@ -1085,6 +1085,29 @@ public class CoeCooperationAPIManager { List appPerm = Arrays.stream(roleModel.getAppPerm().split(",")).collect(Collectors.toList()); set.addAll(appPerm); } + // 若是全部权限,将all替换成具体的应用id + if (set.contains("all")) { + // 获取所有的PAL小组扩展应用 + // 调用App + String sourceAppId = CoEConstant.APP_ID; + // aslp服务地址 + String aslp = "aslp://com.actionsoft.apps.coe.pal.cooperation/listApps"; + // 参数定义列表 + Map params = new HashMap(); + AppAPI appAPI = SDK.getAppAPI(); + //列出已注册的流程团队扩展App + ResponseObject ro = appAPI.callASLP(appAPI.getAppContext(sourceAppId), aslp, params); + if (ro.isOk()) { + JSONArray appArr = (JSONArray) ((Map) ro.getData()).get("apps"); + Set result = new HashSet<>(); + for (int i = 0; i < appArr.size(); i++) { + set.add(appArr.getJSONObject(i).getString("id")); + } + } else { + SDK.getLogAPI().consoleWarn(ro.toString()); + } + } + set.remove("all"); return set; }