提现问题

This commit is contained in:
2024-12-10 10:10:50 +08:00
parent 2546025d70
commit 742c4e8735
3 changed files with 8 additions and 1 deletions

View File

@@ -127,7 +127,7 @@ public class WuyouController {
if ("2".equals(notifyDto.getStatus())) {
cashOut.setState(1);
cashOut.setOutAt(DateUtil.now());
} else {
} else if(!cashOut.getState().equals(2)){
cashOut.setState(2);
cashOut.setRefund(notifyDto.getMsg());
@@ -137,6 +137,8 @@ public class WuyouController {
//存入余额 钱
userMoneyService.updateAmount(1, cashOut.getUserId(), Double.parseDouble(cashOut.getMoney()));
userMoneyDetailsService.save(userMoneyDetails);
}else{
return "success";
}
cashOutDao.updateById(cashOut);
}