cp发送逻辑更改

(cherry picked from commit 1f0813bf989674e4ace73ed003134fe3c5b17840)
This commit is contained in:
tianfeng 2026-04-29 22:58:24 +08:00
parent a38dd91403
commit 209e62e7c9

View File

@ -112,11 +112,11 @@ public class CpLevelUpAvatarFrameService {
return;
}
PropsBackpack userProps = propsBackpackService.getUserProps(userId, propsSourceId, PropsCommodityType.AVATAR_FRAME);
if (userProps != null && TimestampUtils.expiredIntervalMillisecond(userProps.getExpireTime(), TimestampUtils.now()) < 0) {
log.info("CP头像框未过期已存在背包跳过发放, userId={}, propsSourceId={}", userId, propsSourceId);
return;
}
// PropsBackpack userProps = propsBackpackService.getUserProps(userId, propsSourceId, PropsCommodityType.AVATAR_FRAME);
// if (userProps != null && TimestampUtils.expiredIntervalMillisecond(userProps.getExpireTime(), TimestampUtils.now()) < 0) {
// log.info("CP头像框未过期已存在背包跳过发放, userId={}, propsSourceId={}", userId, propsSourceId);
// return;
// }
propsStoreGateway.shippingProductProps(new ProductProps()
.setInitiateUserId(userId)