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