private void savePaymentLog(PayParam payParam) { //同一个会员如果在不同的客户端使用预存款支付,会存在同时支付,无法保证预存款的正确性,所以对会员加锁 RLock lock = redisson.getLock(UserContext.getCurrentUser().getId() + ""); lock.lock(); try { //获取支付收银参数 CashierParam cashierParam = cashierSupport.cashierParam(payParam); this.callBack(payParam, cashierParam); } finally { lock.unlock(); } }
标签:lilishop,cashierParam,lock,payParam,会员,支付 From: https://www.cnblogs.com/Bruce_H21/p/17045852.html