记得上下班打卡 | git大法好,push需谨慎

Commit 44369bf8 authored by jiangxiulong's avatar jiangxiulong

nft加积分顺序

parent 964f3bf6
...@@ -657,6 +657,8 @@ public class GoblinNftOrderServiceImpl implements IGoblinNftOrderService { ...@@ -657,6 +657,8 @@ public class GoblinNftOrderServiceImpl implements IGoblinNftOrderService {
}); });
queueUtils.sendMsgByRedis(MQConst.GoblinQueue.GOBLIN_NFT_ORDER.getKey(), queueUtils.sendMsgByRedis(MQConst.GoblinQueue.GOBLIN_NFT_ORDER.getKey(),
SqlMapping.gets(sqls, sqlDataOrder)); SqlMapping.gets(sqls, sqlDataOrder));
// 加积分
goblinOrderUtils.integral(uid, orderVo.getPriceActual(), "购买数字藏品", 1);
// 处理订单退款和其他流程 // 处理订单退款和其他流程
if (Objects.equals(orderStatusOld, GoblinStatusConst.NftStatus.ORDER_STATUS_3.getValue())) {// 超时支付 退款 if (Objects.equals(orderStatusOld, GoblinStatusConst.NftStatus.ORDER_STATUS_3.getValue())) {// 超时支付 退款
log.info("Nft订单超时支付 param:[orderCode:{}]", orderCode); log.info("Nft订单超时支付 param:[orderCode:{}]", orderCode);
...@@ -672,8 +674,6 @@ public class GoblinNftOrderServiceImpl implements IGoblinNftOrderService { ...@@ -672,8 +674,6 @@ public class GoblinNftOrderServiceImpl implements IGoblinNftOrderService {
this.generateUserArtwork(orderVo); this.generateUserArtwork(orderVo);
// 增加销量 // 增加销量
goblinRedisUtils.incrSkuSaleCount(orderVo.getSpuId(), orderVo.getSkuId(), orderVo.getNum()); goblinRedisUtils.incrSkuSaleCount(orderVo.getSpuId(), orderVo.getSkuId(), orderVo.getNum());
// 加积分
goblinOrderUtils.integral(uid, orderVo.getPriceActual(), "购买数字藏品", 1);
} }
// 写入用户订单列表 因取消的订单不展示 所以放在这里 // 写入用户订单列表 因取消的订单不展示 所以放在这里
nftOrderUtils.addNftOrderList(uid, orderVo.getOrderId()); nftOrderUtils.addNftOrderList(uid, orderVo.getOrderId());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment