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

Commit ce38602c authored by jiangxiulong's avatar jiangxiulong

isLock

parent f330004f
......@@ -64,10 +64,10 @@ public class GoblinNftOrderServiceImpl implements IGoblinNftOrderService {
public ResponseDto<GoblinNftPayResultVo> checkOrder(GoblinNftOrderPayParam payParam) {
String uid = CurrentUtil.getCurrentUid();
// 加锁
/* boolean isLock = nftOrderUtils.setNftOrderBuyLock(uid);
boolean isLock = nftOrderUtils.setNftOrderBuyLock(uid);
if (!isLock) {
return ResponseDto.failure("排队处理中,请勿重复操作~");
} else {*/
} else {
try {
// 认证验证
GoblinUserNftAccInfoVo openAccountInfo = goblinRedisUtils.getOpenAccountInfo(uid);
......@@ -234,11 +234,11 @@ public class GoblinNftOrderServiceImpl implements IGoblinNftOrderService {
} catch (Exception e) {
log.error("NFT下单异常 e:{}", e);
return ResponseDto.failure("下单失败,请稍后重试!");
}/* finally {
} finally {
// 执行完毕。释放锁
nftOrderUtils.delNftOrderBuyLock(uid);
}
}*/
}
}
private GoblinGoodsSkuInfoVo lotteryDraw(List<String> skuIdList, int number, LocalDateTime nowTime, String listId) {
......
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