|
@@ -62,7 +62,7 @@ export class TransferSuccessService extends BaseService {
|
|
*/
|
|
*/
|
|
// 获取回调用户的详情
|
|
// 获取回调用户的详情
|
|
accountInfo = await this.webHookCommonService.getAccountInfo(
|
|
accountInfo = await this.webHookCommonService.getAccountInfo(
|
|
- params.data.account_id
|
|
|
|
|
|
+ params.data.from_account_id
|
|
);
|
|
);
|
|
if (!accountInfo) {
|
|
if (!accountInfo) {
|
|
// 转账延迟4秒处理
|
|
// 转账延迟4秒处理
|
|
@@ -75,7 +75,7 @@ export class TransferSuccessService extends BaseService {
|
|
// 获取费率信息
|
|
// 获取费率信息
|
|
withdrawChannelFee =
|
|
withdrawChannelFee =
|
|
await this.webHookCommonService.getWithdrawChannelFee({
|
|
await this.webHookCommonService.getWithdrawChannelFee({
|
|
- account_id: params.data.account_id,
|
|
|
|
|
|
+ account_id: params.data.from_account_id,
|
|
currency: params.data.currency,
|
|
currency: params.data.currency,
|
|
order_type: OrderType.TRANSFER,
|
|
order_type: OrderType.TRANSFER,
|
|
channel: 'EASYPAY',
|
|
channel: 'EASYPAY',
|
|
@@ -107,7 +107,7 @@ export class TransferSuccessService extends BaseService {
|
|
const openPaymentOrderParams = {
|
|
const openPaymentOrderParams = {
|
|
mch_id: accountInfo.mch_id,
|
|
mch_id: accountInfo.mch_id,
|
|
amount: params.data.amount / 100,
|
|
amount: params.data.amount / 100,
|
|
- account_id: params.data.account_id,
|
|
|
|
|
|
+ account_id: params.data.from_account_id,
|
|
from_account_id: params.data.from_account_id,
|
|
from_account_id: params.data.from_account_id,
|
|
to_account_id: params.data.to_account_id,
|
|
to_account_id: params.data.to_account_id,
|
|
event_id: params.data.id,
|
|
event_id: params.data.id,
|
|
@@ -156,7 +156,7 @@ export class TransferSuccessService extends BaseService {
|
|
account_id: params.data.account_id,
|
|
account_id: params.data.account_id,
|
|
from_account_id: params.data.account_id,
|
|
from_account_id: params.data.account_id,
|
|
to_account_id: this.easyPayAdapter.baseInfo.account_id,
|
|
to_account_id: this.easyPayAdapter.baseInfo.account_id,
|
|
- event_id: params.data.id,
|
|
|
|
|
|
+ event_id: res.data.id,
|
|
currency: params.data.currency,
|
|
currency: params.data.currency,
|
|
status: params.data.status,
|
|
status: params.data.status,
|
|
order_type: OrderType.TRANSACTION_FEE_ORDER,
|
|
order_type: OrderType.TRANSACTION_FEE_ORDER,
|
|
@@ -180,6 +180,7 @@ export class TransferSuccessService extends BaseService {
|
|
return await this.openPaymentOrderEntity.findOne({
|
|
return await this.openPaymentOrderEntity.findOne({
|
|
where: {
|
|
where: {
|
|
event_id,
|
|
event_id,
|
|
|
|
+ order_type: OrderType.TRANSACTION_FEE_ORDER
|
|
},
|
|
},
|
|
});
|
|
});
|
|
}
|
|
}
|