|
@@ -1040,18 +1040,6 @@ public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements Us
|
|
|
if (!b) {
|
|
if (!b) {
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
- if (redisService.setNx(RedisService.key.CLAUDE_CODE_TY_DAY_CARD_KEY.getName() + user.getId(), user.getId(), RedisService.key.CLAUDE_CODE_TY_DAY_CARD_KEY.getTimeout())) {
|
|
|
|
|
- //存在Claude code车票不发送体验卡
|
|
|
|
|
- if (!claudeCodeService.checkClaudeCodeUser(user.getId())) {
|
|
|
|
|
- Integer receiveRecord = claudeCodeUserTrialReceiveRecordMapper.selectCount(Wrappers.lambdaQuery(ClaudeCodeUserTrialReceiveRecord.class).eq(ClaudeCodeUserTrialReceiveRecord::getUserId, user.getId()));
|
|
|
|
|
- if (receiveRecord > 0) {
|
|
|
|
|
- return;
|
|
|
|
|
- }
|
|
|
|
|
- //发送claude code 体验卡
|
|
|
|
|
- Long relationId = groupRelationFrontService.getTrialTicketByUserIdAndGoodsId(user.getId(), Constant.DISTRIBUTE_CLAUDE_CODE_TRIAL_SKU_ID, 1);
|
|
|
|
|
- recordReceiveClaudeCodeRecord(user.getId(), relationId);
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
} else {
|
|
} else {
|
|
|
//该优惠券是否处于推荐中
|
|
//该优惠券是否处于推荐中
|
|
|
int isTj = couponRecommendMapper.checkPresentRecommendByCouponId(Constant.DISTRIBUTE_CLAUDE_CODE_NO_CODE_COUPON_ID);
|
|
int isTj = couponRecommendMapper.checkPresentRecommendByCouponId(Constant.DISTRIBUTE_CLAUDE_CODE_NO_CODE_COUPON_ID);
|
|
@@ -1111,9 +1099,6 @@ public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements Us
|
|
|
*/
|
|
*/
|
|
|
private void setPopularizeUserInfo(Long popularizeGoodsId, List<Long> userIdList, Long userId, UserWhoami userWhoami) {
|
|
private void setPopularizeUserInfo(Long popularizeGoodsId, List<Long> userIdList, Long userId, UserWhoami userWhoami) {
|
|
|
Long trialSkuId = null;
|
|
Long trialSkuId = null;
|
|
|
- if (popularizeGoodsId == Constant.CLAUDE_CODE_GOODS_ID) {
|
|
|
|
|
- trialSkuId = Constant.DISTRIBUTE_CLAUDE_CODE_TRIAL_SKU_ID;
|
|
|
|
|
- }
|
|
|
|
|
if (popularizeGoodsId == Constant.NANO_GOODS_ID) {
|
|
if (popularizeGoodsId == Constant.NANO_GOODS_ID) {
|
|
|
trialSkuId = Constant.DISTRIBUTE_NANO_TRIAL_SKU_ID;
|
|
trialSkuId = Constant.DISTRIBUTE_NANO_TRIAL_SKU_ID;
|
|
|
}
|
|
}
|