| | |
| | | |
| | | Withdraw withdraw = withdrawService.getOne(new LambdaQueryWrapper<>(Withdraw.class) |
| | | .eq(Withdraw::getOrderNo, order_no).last(" limit 1 ")); |
| | | if(ObjectUtil.isEmpty(withdraw) && withdraw.getStatus() != 0 && !withdraw.getAddress().equals(address)){ |
| | | log.info("withdraw failed:{}", withdraw); |
| | | if (ObjectUtil.isEmpty(withdraw)) { |
| | | log.warn("withdrawCallback ignore: order not found, orderNo={}, address={}", order_no, address); |
| | | resultMsg.setCode(200); |
| | | return resultMsg; |
| | | } |
| | | // 已处理状态或地址不匹配时忽略回调,避免重复处理/误处理 |
| | | if (withdraw.getStatus() != 0 || !address.equals(withdraw.getAddress())) { |
| | | log.info("withdrawCallback ignore: orderNo={}, status={}, callbackAddress={}, orderAddress={}", |
| | | order_no, withdraw.getStatus(), address, withdraw.getAddress()); |
| | | resultMsg.setCode(200); |
| | | return resultMsg; |
| | | } |