|
@@ -131,6 +131,7 @@ export class WithdrawStateService extends BaseService {
|
|
});
|
|
});
|
|
await this.withdrawEntity.update(withdraw.id, withdraw);
|
|
await this.withdrawEntity.update(withdraw.id, withdraw);
|
|
this.withdrawNotifyService.notify(withdraw);
|
|
this.withdrawNotifyService.notify(withdraw);
|
|
|
|
+ return withdraw.status;
|
|
}
|
|
}
|
|
|
|
|
|
// 订单成功=》失败
|
|
// 订单成功=》失败
|
|
@@ -159,8 +160,8 @@ export class WithdrawStateService extends BaseService {
|
|
const { status, traceNo, message } = await this.dispatchService.withdraw(withdraw);
|
|
const { status, traceNo, message } = await this.dispatchService.withdraw(withdraw);
|
|
if (+status === 3) {
|
|
if (+status === 3) {
|
|
this.logger.info(withdraw.orderNo, `------------发起代付失败-------------`);
|
|
this.logger.info(withdraw.orderNo, `------------发起代付失败-------------`);
|
|
- withdraw.status = 3;
|
|
|
|
- withdraw.remark = message
|
|
|
|
|
|
+ withdraw.remark = message;
|
|
|
|
+ withdraw.status = await this.stateTo(withdraw.status, this.STATUS.FAIL, withdraw);
|
|
} else {
|
|
} else {
|
|
withdraw.traceNo = traceNo;
|
|
withdraw.traceNo = traceNo;
|
|
}
|
|
}
|