兼容iOS的giftSource为0问题

This commit is contained in:
liaozetao
2023-08-11 12:09:45 +08:00
parent a9bf3ae9f1
commit 30c276f850

View File

@@ -326,6 +326,10 @@ public class GiftV2Controller extends BaseController {
@CancelUidTag(paramName = {"targetUids"})
public BusiResult sendV4(@RequestParam(value = "targetUids") Long[] targetUids
, Long roomUid, int giftId, int giftNum, byte sendType, String msg, byte giftSource, String chatSessionId) throws Exception {
//兼容iOS的giftSource为0问题
if (giftSource == 0) {
giftSource = Constant.GiftSource.COMMON;
}
Long uid = getUid();
logger.info("sendV4 param==>>> uid:{},targetUids:{},roomUid:{},giftId:{},giftNum:{},sendType:{},giftSource:{}",
uid, targetUids, roomUid, giftId, giftNum, sendType, giftSource);