Commit 4c30f7ac by 陶光胜

线上权限调整

parent f63f53aa
......@@ -74,9 +74,14 @@ public class DataAuthUtils {
for(int i=0; i<array.size(); i++){
JSONObject jsonObject = array.getJSONObject(i);
OnLineStore onLineStore = new OnLineStore();
onLineStore.setChannel(jsonObject.getInteger("channel"));
onLineStore.setStoreIdList(JSONArray.parseArray(jsonObject.getJSONArray("storeContent").toJSONString(), String.class));
list.add(onLineStore);
String channel = jsonObject.getString("channel");
if(StringUtils.isBlank(channel)){
onLineAuth.setHasAuth(false);
}else {
onLineStore.setChannel(Integer.valueOf(channel));
onLineStore.setStoreIdList(JSONArray.parseArray(jsonObject.getJSONArray("storeContent").toJSONString(), String.class));
list.add(onLineStore);
}
}
onLineAuth.setList(list);
}
......
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