nili 7 months ago
parent
commit
5bedb7e629
  1. 6
      game-service/src/main/java/awesome/group/game/service/matrix/MatrixMoneyService.java

6
game-service/src/main/java/awesome/group/game/service/matrix/MatrixMoneyService.java

@ -38,6 +38,9 @@ public class MatrixMoneyService {
@Autowired
private AdminService adminService;
@Autowired
private MatrixUserMapper userMapper;
public static final int AUDIT_FAIL= -2;
public static final int AUDIT_SUCCESS= 1;
@ -69,5 +72,8 @@ public class MatrixMoneyService {
throw new PaganiException(PaganiExceptionCode.GENERAL_ERROR, "非法请求,多次操作将被封号");
}
moneyRecordMapper.updateStatusAndReason(id, status, reason);
if (status == AUDIT_FAIL) {
userMapper.incMoney(record.getUserId(), -record.getCent());
}
}
}

Loading…
Cancel
Save