兼容iOS异常提示语
This commit is contained in:
@@ -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;
|
||||
|
@@ -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);
|
||||
|
Reference in New Issue
Block a user