Commit ba903f98 by zhiwj

空指针错误

parent 1b14eacc
......@@ -416,12 +416,16 @@ public class IndexModuleController {
Integer enterpriseId = UserDetailUtils.getUserDetail().getEnterpriseId();
List<Integer> authStoreIdList = new ArrayList<>();
if(UserDetailUtils.getUserDetail().getUserInfo().getSuperAdmin() != 1){
ServiceResponse<List<Integer>> authResponse = this.storeWidgetApiService.listStoreIdByStoreWidgetId(enterpriseId, UserDetailUtils.getUserDetail().getUserResourceInfo().getStoreResource().intValue());
if(authResponse.isSuccess()){
authStoreIdList = authResponse.getResult();
}
if(CollectionUtils.isEmpty(authStoreIdList)){
if (UserDetailUtils.getUserDetail().getUserResourceInfo().getStoreResource() == null) {
authStoreIdList.add(-1);
} else {
ServiceResponse<List<Integer>> authResponse = this.storeWidgetApiService.listStoreIdByStoreWidgetId(enterpriseId, UserDetailUtils.getUserDetail().getUserResourceInfo().getStoreResource().intValue());
if(authResponse.isSuccess()){
authStoreIdList = authResponse.getResult();
}
if(CollectionUtils.isEmpty(authStoreIdList)){
authStoreIdList.add(-1);
}
}
}
return authStoreIdList;
......
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