|
@@ -235,11 +235,11 @@ public class KuaiShouDimensionStrategyController {
|
|
|
if (Check.isNull(appInfoArray)) {
|
|
|
throw new Exception("策略配置应用不能为空");
|
|
|
}
|
|
|
-
|
|
|
- LoginUser sysUser = (LoginUser) SecurityUtils.getSubject().getPrincipal();
|
|
|
-
|
|
|
-
|
|
|
- kuaiShouDimensionStrategyService.insertStrategy(sysUser.getId(), strategyJson);
|
|
|
+ String userId = strategyJson.getString("userId");
|
|
|
+ if (Check.isNull(userId)) {
|
|
|
+ throw new Exception("userId不能为空");
|
|
|
+ }
|
|
|
+ kuaiShouDimensionStrategyService.insertStrategy(userId, strategyJson);
|
|
|
result.success("添加成功!");
|
|
|
} catch (Exception e) {
|
|
|
log.error(e.getMessage(), e);
|