refactor(ff-admin): 重构平台不支持功能的返回方式
- 将返回默认值改为抛出 BaseException 异常 -统一异常信息为 "当前平台不支持" - 修改受影响的方法:main-p
parent
02388446db
commit
758bed4501
|
@ -422,7 +422,7 @@ public class GamesXKServiceImpl implements IGamesService {
|
|||
*/
|
||||
@Override
|
||||
public Boolean createFreeSpin(CreateFreeSpinRequestDTO createFreeSpinRequest) {
|
||||
return Boolean.FALSE;
|
||||
throw new BaseException("当前平台不支持");
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -433,7 +433,7 @@ public class GamesXKServiceImpl implements IGamesService {
|
|||
*/
|
||||
@Override
|
||||
public GetGameDetailResponseDTO getGameDetail(GetGameDetailRequestDTO getGameDetailRequestDTO) {
|
||||
return new GetGameDetailResponseDTO();
|
||||
throw new BaseException("当前平台不支持");
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -469,7 +469,7 @@ public class GamesXKServiceImpl implements IGamesService {
|
|||
*/
|
||||
@Override
|
||||
public Boolean kickMemberAll(KickMemberAllDTO kickMemberAllDTO) {
|
||||
throw new BaseException("当前平台不支持全部踢出");
|
||||
throw new BaseException("当前平台不支持");
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -480,7 +480,7 @@ public class GamesXKServiceImpl implements IGamesService {
|
|||
*/
|
||||
@Override
|
||||
public List<GameFreeRecord> getFreeSpinDashflow(GetFreeSpinDashflowRequestDTO getFreeSpinDashflowRequestDTO) {
|
||||
return new ArrayList<>();
|
||||
throw new BaseException("当前平台不支持");
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -491,7 +491,7 @@ public class GamesXKServiceImpl implements IGamesService {
|
|||
*/
|
||||
@Override
|
||||
public Boolean cancelFreeSpin(CancelFreeSpinRequestDTO cancelFreeSpinRequestDTO) {
|
||||
return Boolean.TRUE;
|
||||
throw new BaseException("当前平台不支持");
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue