| | |
| | | break; |
| | | } |
| | | if("TRADE_SUCCESS".equals(tradeStatus)){ |
| | | records.setAppUserId(null); |
| | | records.setPayStatus(2); |
| | | records.setPayTime(new Date()); |
| | | records.setOrderNumber(tradeNo); |
| | | rereMapper.updateById(records); |
| | | |
| | | // RechargeRecords rechargeRecords = rereMapper.selectOne(new QueryWrapper<RechargeRecords>() |
| | | // .eq("code", code)); |
| | | // if (rechargeRecords.getPayStatus() == 2){ |
| | | // break; |
| | | // } |
| | | // |
| | | // TAppUser tAppUser = tappMapper.selectById(rechargeRecords.getAppUserId()); |
| | | // tAppUser.setPlayPaiCoins(null == tAppUser.getPlayPaiCoins()? rechargeRecords.getPlayPaiCoins(): tAppUser.getPlayPaiCoins() +rechargeRecords.getPlayPaiCoins() ); |
| | | // tappMapper.updateById(tAppUser); |
| | | |
| | | |
| | | break; |
| | | } |
| | | if("WAIT_BUYER_PAY".equals(tradeStatus)){ |
| | |
| | | if (rechargeRecords.getPayStatus() == 2){ |
| | | return ResultUtil.success(); |
| | | } |
| | | rechargeRecords.setAppUserId(null); |
| | | rechargeRecords.setPayStatus(2); |
| | | rechargeRecords.setPayTime(new Date()); |
| | | rechargeRecords.setOrderNumber(orderNumber); |