|
@@ -98,7 +98,7 @@ export class TransferSuccessService extends BaseService {
|
|
// 获取余额
|
|
// 获取余额
|
|
const { before_balance, balance } =
|
|
const { before_balance, balance } =
|
|
await this.webHookCommonService.getBalanceDiffByCurrency({
|
|
await this.webHookCommonService.getBalanceDiffByCurrency({
|
|
- account_id: params.data.account_id,
|
|
|
|
|
|
+ account_id: params.data.from_account_id,
|
|
currency: params.data.currency,
|
|
currency: params.data.currency,
|
|
amount: params.data.amount,
|
|
amount: params.data.amount,
|
|
order_type: OrderType.TRANSFER,
|
|
order_type: OrderType.TRANSFER,
|
|
@@ -133,7 +133,7 @@ export class TransferSuccessService extends BaseService {
|
|
// /v1/transfers
|
|
// /v1/transfers
|
|
const transfers_params = {
|
|
const transfers_params = {
|
|
request_id: md5(`${accountInfo.mch_id}_${params.data.id}`),
|
|
request_id: md5(`${accountInfo.mch_id}_${params.data.id}`),
|
|
- from_account_id: params.data.account_id,
|
|
|
|
|
|
+ from_account_id: params.data.from_account_id,
|
|
to_account_id: this.easyPayAdapter.baseInfo.account_id,
|
|
to_account_id: this.easyPayAdapter.baseInfo.account_id,
|
|
currency: params.data.currency,
|
|
currency: params.data.currency,
|
|
amount: withdrawChannelFee * 100,
|
|
amount: withdrawChannelFee * 100,
|
|
@@ -153,8 +153,8 @@ export class TransferSuccessService extends BaseService {
|
|
request_id: transfers_params.request_id,
|
|
request_id: transfers_params.request_id,
|
|
mch_id: accountInfo.mch_id,
|
|
mch_id: accountInfo.mch_id,
|
|
amount: withdrawChannelFee,
|
|
amount: withdrawChannelFee,
|
|
- account_id: params.data.account_id,
|
|
|
|
- from_account_id: params.data.account_id,
|
|
|
|
|
|
+ account_id: params.data.from_account_id,
|
|
|
|
+ from_account_id: params.data.from_account_id,
|
|
to_account_id: this.easyPayAdapter.baseInfo.account_id,
|
|
to_account_id: this.easyPayAdapter.baseInfo.account_id,
|
|
event_id: res.data.id,
|
|
event_id: res.data.id,
|
|
currency: params.data.currency,
|
|
currency: params.data.currency,
|