兼容iOS异常提示语

This commit is contained in:
liaozetao
2023-12-21 15:41:26 +08:00
parent d5eb9a5521
commit ba13bb3693
2 changed files with 3 additions and 3 deletions

View File

@@ -774,10 +774,10 @@ public class GiftSendService extends BaseService {
Map<Long, Users> usersMap = usersService.getUsersMapBatch(uidsArray);
// 校验用户是否都存在或者收礼用户是否重复
if (!flag && usersMap.size() != recvUids.length + 1) {
throw new ServiceException(BusiStatus.PARAMETERILLEGAL);
throw new ApiException(BusiStatus.PARAMETERILLEGAL.getCode(), "贈送失敗,請退出房間後重試");
}
if (flag && usersMap.size() != recvUids.length) {
throw new ServiceException(BusiStatus.PARAMETERILLEGAL);
throw new ApiException(BusiStatus.PARAMETERILLEGAL.getCode(), "贈送失敗,請退出房間後重試");
}
Room room = null;

View File

@@ -331,7 +331,7 @@ public class GiftV2Controller extends BaseController {
logger.info("sendV4 param==>>> uid:{},targetUids:{},roomUid:{},giftId:{},giftNum:{},sendType:{},giftSource:{}",
uid, targetUids, roomUid, giftId, giftNum, sendType, giftSource);
if (giftNum <= 0 || targetUids == null || targetUids.length < 1) {
return new BusiResult(BusiStatus.PARAMETERILLEGAL);
return BusiResult.fail(BusiStatus.PARAMETERILLEGAL);
}
if (giftNum > Constant.GIFT_SEND_MAX_NUM) {
return new BusiResult(BusiStatus.SEND_GIFT_NUM_TOO_LARGE);