|
@@ -163,7 +163,12 @@ public class PointsRechargeController {
|
|
|
throw new GlobalException("请求参数-所属企业不允许为空");
|
|
throw new GlobalException("请求参数-所属企业不允许为空");
|
|
|
}
|
|
}
|
|
|
if (pointsRecharge.getChannelIdList().contains(0L)){
|
|
if (pointsRecharge.getChannelIdList().contains(0L)){
|
|
|
- Long userId = SecurityUtils.getSysUser().getUserId();
|
|
|
|
|
|
|
+ Long userId = null;
|
|
|
|
|
+ try {
|
|
|
|
|
+ userId = SecurityUtils.getSysUser().getUserId();
|
|
|
|
|
+ } catch (Exception e) {
|
|
|
|
|
+ throw new GlobalException("获取当前登录用户失败");
|
|
|
|
|
+ }
|
|
|
List<Long> channelIdList = sysUserService.findByUserIdListId(userId);
|
|
List<Long> channelIdList = sysUserService.findByUserIdListId(userId);
|
|
|
pointsRecharge.setChannelIdList(channelIdList);
|
|
pointsRecharge.setChannelIdList(channelIdList);
|
|
|
}
|
|
}
|