Commit ea66f3df by guojx

渠道权限修复

parent d6a631f3
......@@ -245,6 +245,7 @@ public class DataController {
Set<String> hasAuthSet = new HashSet<>();
for (PlatformChannelEnum value : values) {
boolean enable = true;
hasAuthSet.add(value.getChannelCode());
// 微信渠道,pos渠道,其他渠道默认开通
if(PlatformEnum.WECHAT.equals(value.getBelongPlatform()) || PlatformEnum.POS.equals(value.getBelongPlatform()) || PlatformEnum.OTHER.equals(value.getBelongPlatform())){
continue;
......@@ -266,8 +267,8 @@ public class DataController {
enable = false;
}
}
if (enable) {
hasAuthSet.add(value.getChannelCode());
if (!enable) {
hasAuthSet.remove(value.getChannelCode());
}
}
if (page != null) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment