lilishop 锁
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(); } }