|
@@ -52,9 +52,6 @@ public class RoleManageServiceImpl implements IRoleManageService {
|
|
|
private ICPSendMsgRpc sendMsgRpc;
|
|
|
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
/**
|
|
|
* 角色充值排行榜
|
|
|
* @param dto RoleRechargeRankingDTO
|
|
@@ -336,8 +333,6 @@ public class RoleManageServiceImpl implements IRoleManageService {
|
|
|
*/
|
|
|
@Override
|
|
|
public void createSendMsgTask(SendMsgTaskDto dto) {
|
|
|
- //校验参数
|
|
|
- validation(dto);
|
|
|
//获取当前用户id
|
|
|
Long sysUserId = SecurityUtil.getUserId();
|
|
|
//构建发送消息dto
|
|
@@ -349,25 +344,6 @@ public class RoleManageServiceImpl implements IRoleManageService {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * 校验参数
|
|
|
- * @param dto
|
|
|
- */
|
|
|
- private void validation(SendMsgTaskDto dto) {
|
|
|
- if (StringUtils.isBlank(dto.getTaskName())) {
|
|
|
- throw new BaseException("任务名称不能为空");
|
|
|
- }
|
|
|
- if (StringUtils.isBlank(dto.getSendContent())) {
|
|
|
- throw new BaseException("发送内容不能为空");
|
|
|
- }
|
|
|
- if(dto.getGameId()==null){
|
|
|
- throw new BaseException("游戏id不能为空");
|
|
|
- }
|
|
|
- if(CollectionUtils.isEmpty(dto.getRoleIds())){
|
|
|
- throw new BaseException("角色id不能为空");
|
|
|
- }
|
|
|
-
|
|
|
- }
|
|
|
|
|
|
private SendMsgDto buildSendMsgDto(SendMsgTaskDto dto, Long sysUserId) {
|
|
|
// //先查出来所有的角色
|