Forráskód Böngészése

fix 去掉cc体验天卡赠送

zoujiajian 7 hónapja
szülő
commit
2785608b29

+ 1 - 1
netflix-dao/src/main/java/com/cyksj/model/excel/ExcelMonthOrderData.java

@@ -3,7 +3,7 @@ package com.cyksj.model.excel;
 import com.alibaba.excel.annotation.ExcelProperty;
 import lombok.Getter;
 import lombok.Setter;
-import lombok.experimental.Aessors;
+import lombok.experimental.Accessors;
 
 import java.math.BigDecimal;
 

+ 0 - 9
netflix-service/src/main/java/com/cyksj/service/distribute/impl/DistributeServiceImpl.java

@@ -381,15 +381,6 @@ public class DistributeServiceImpl implements DistributeService {
 		}
 		try {
 			userDistributeSharedMapper.insert(userDistributeShared);
-			if (Constant.CC_DISTRIBUTE_MARK.equals(userDistributeShared.getRemark())) {
-				//若是cc普通推广 发送claude code积分卡
-				claudeCodeService.sendCreditCard(null, userDistributeShared.getSharedId(), Constant.CLAUDE_CODE_SUP_QUOTA, Constant.CLAUDE_CODE_CARD_NUMBER + System.currentTimeMillis(), "新用户注册");
-				//存在Claude code车票不发送体验卡
-				if (!claudeCodeService.checkClaudeCodeUser(userId)) {
-					//发送claude code 体验卡
-					groupRelationFrontService.getTrialTicketByUserIdAndGoodsId(userId, Constant.DISTRIBUTE_CLAUDE_CODE_TRIAL_SKU_ID, 1);
-				}
-			}
 			TaskType taskType = taskTypeMapper.selectOne(Wrappers.lambdaQuery(TaskType.class)
 					.eq(TaskType::getName, TaskTypeEnum.share.getDesc()).last("limit 1"));
 			taskService.completeTask(taskType, sharedId);

+ 0 - 12
netflix-service/src/main/java/com/cyksj/service/gzh/factory/EventMsgService.java

@@ -427,18 +427,6 @@ public class EventMsgService implements GzhMsgService {
 						if (!b) {
 							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 {
 						//该优惠券是否处于推荐中
 						int isTj = couponRecommendMapper.checkPresentRecommendByCouponId(Constant.DISTRIBUTE_CLAUDE_CODE_NO_CODE_COUPON_ID);

+ 0 - 15
netflix-service/src/main/java/com/cyksj/service/user/impl/UserServiceImpl.java

@@ -1040,18 +1040,6 @@ public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements Us
 						if (!b) {
 							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 {
 						//该优惠券是否处于推荐中
 						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) {
 		Long trialSkuId = null;
-		if (popularizeGoodsId == Constant.CLAUDE_CODE_GOODS_ID) {
-			trialSkuId = Constant.DISTRIBUTE_CLAUDE_CODE_TRIAL_SKU_ID;
-		}
 		if (popularizeGoodsId == Constant.NANO_GOODS_ID) {
 			trialSkuId = Constant.DISTRIBUTE_NANO_TRIAL_SKU_ID;
 		}