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

Commit e989621b authored by jiangxiulong's avatar jiangxiulong

增减积分用队列

parent 08e00fa4
......@@ -22,12 +22,12 @@ public class ConsumerGoblinBizIntegralReceiver extends AbstractBizRedisReceiver
@Override
protected String getRedisStreamKey() {
return MQConst.GoblinQueue.BIZ_ARTWORK_UPL.getKey();
return MQConst.GoblinQueue.BIZ_INTEGRAL.getKey();
}
@Override
protected String getRedisStreamGroup() {
return MQConst.GoblinQueue.BIZ_ARTWORK_UPL.getGroup();
return MQConst.GoblinQueue.BIZ_INTEGRAL.getGroup();
}
@Override
......
......@@ -673,7 +673,7 @@ public class GoblinNftOrderServiceImpl implements IGoblinNftOrderService {
// 增加销量
goblinRedisUtils.incrSkuSaleCount(orderVo.getSpuId(), orderVo.getSkuId(), orderVo.getNum());
// 加积分
goblinOrderUtils.integral(uid, orderVo.getPriceActual(), "藏品购买", 1);
goblinOrderUtils.integral(uid, orderVo.getPriceActual(), "购买数字藏品", 1);
}
// 写入用户订单列表 因取消的订单不展示 所以放在这里
nftOrderUtils.addNftOrderList(uid, orderVo.getOrderId());
......@@ -739,7 +739,7 @@ public class GoblinNftOrderServiceImpl implements IGoblinNftOrderService {
queueUtils.sendMsgByRedis(MQConst.GoblinQueue.GOBLIN_NFT_ORDER.getKey(),
SqlMapping.gets(sqls, sqlsOrder, sqlsBackOrder));
//减积分
goblinOrderUtils.integral(nftOrder.getUserId(), nftOrderRefundVo.getPrice(), "藏品退款", 2);
goblinOrderUtils.integral(nftOrder.getUserId(), nftOrderRefundVo.getPrice(), "数字藏品退款", 2);
} else if (0 == status) {
log.info("NftRefundCallback: 支付平台返回状态为失败,编号{}", refundCallbackParam.getOrderRefundCode());
return "fail";
......
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