Explorar el Código

fix 添加固定客服发放声破天优惠券

zoujiajian hace 3 años
padre
commit
640e6f4aab

+ 5 - 0
netflix-common/src/main/java/com/cyksj/common/constant/Constant.java

@@ -57,4 +57,9 @@ public interface Constant {
 	 * 实物分销配置
 	 */
 	String EQUIPMENT_DISTRIBUTE_KEY = "equipment_distribute_key";
+
+	/**
+	 * 添加规定客服发放优惠券
+	 */
+	List<Long> FIXED_CUSTOMER_COUPON_IDS = List.of(38l, 41l);
 }

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

@@ -185,7 +185,7 @@ public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements Us
 									.field(CorpUserFollowView::getUnionId, unionId)
 									.field(CorpUserFollowView::getFollowId, followIds).op(Operator.InList).build());
 							if (corpUserFollowView != null) {
-								couponCommonService.sendCouponToUser(userId, 38l, 0l, 0l, 0l, CouponUser.Channel.wxCorp);
+								Constant.FIXED_CUSTOMER_COUPON_IDS.forEach(couponId -> couponCommonService.sendCouponToUser(userId, couponId, 0l, 0l, 0l, CouponUser.Channel.wxCorp));
 							}
 						}
 					} catch (Exception e) {