mirror of
https://gitee.com/52itstyle/spring-boot-seckill.git
synced 2025-12-30 10:22:26 +00:00
:sparkles:手慢了,红包派完了
This commit is contained in:
@@ -117,9 +117,9 @@ public class RedPacketService implements IRedPacketService {
|
||||
}
|
||||
}else{
|
||||
/**
|
||||
* 获取锁失败相当于抢红包失败,红包个数加一
|
||||
* 获取锁失败相当于抢红包失败
|
||||
*/
|
||||
redisUtil.incr(redPacketId+"-num",1);
|
||||
return Result.error("手慢了,红包派完了");
|
||||
}
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
|
||||
Reference in New Issue
Block a user