From 3dc3e616092694a0e300c8089593236f2cc7a6d1 Mon Sep 17 00:00:00 2001 From: zhengyiming <540361168@qq.com> Date: 星期三, 19 三月 2025 09:39:45 +0800 Subject: [PATCH] fix: 三期需求 --- packages/core/src/lifeRechargeServices.ts | 40 +++++++++++++++++++++++++++++----------- 1 files changed, 29 insertions(+), 11 deletions(-) diff --git a/packages/core/src/lifeRechargeServices.ts b/packages/core/src/lifeRechargeServices.ts index ef65c43..c7ed9f6 100644 --- a/packages/core/src/lifeRechargeServices.ts +++ b/packages/core/src/lifeRechargeServices.ts @@ -18,12 +18,17 @@ ...axiosConfig, // baseURL: process.env.NODE_ENV === 'development' ? '/' : 'https://api.81812333.com', requestInterceptors: [ - // [ - // (config) => { - // console.log('config2: ', config); - // return config; - // }, - // ], + [ + (config) => { + if (config.params) { + config.params.checkChannelId = this.ctx.accountModel.channlesNum; + } + if (config.data) { + config.data.checkChannelId = this.ctx.accountModel.channlesNum; + } + return config; + }, + ], ...axiosConfig.requestInterceptors, ], timeout: 10 * 1000, @@ -122,14 +127,15 @@ } /** 鏍规嵁璁㈠崟鍙疯幏鍙栨敮浠樼姸鎬� GET /api/LifePay/GetPayStatusByOrderNo */ - async getPayStatusByOrderNo(params: APIgetPayStatusByOrderNoParams, options?: RequestConfig) { + async getPayStatusByOrderNo(body: GetPayStatusByOrderNoInput, options?: RequestConfig) { return this.request<LifeRechargeConstants.LifePayStatusEnum>( '/api/LifePay/GetPayStatusByOrderNo', { - method: 'GET', - params: { - ...params, + method: 'POST', + headers: { + 'Content-Type': 'application/json', }, + data: body, ...(options || {}), } ); @@ -372,6 +378,8 @@ export interface LifePhoneDataCreateLifePayOrderInput { userId?: string; + /** 娓犻亾Id */ + channelId?: string; productData?: LifePhoneData; } @@ -392,6 +400,8 @@ export interface LifeElectricDataCreateLifePayOrderInput { userId?: string; + /** 娓犻亾Id */ + channelId?: string; productData?: LifeElectricData; } @@ -487,6 +497,7 @@ refundCheckRemark?: string; /** 娓犻亾娴佹按鍙� */ acoolyOrderNo?: string; + frontStatus?: LifeRechargeConstants.LifePayOrderFrontStatusEnum; } export interface ElectricSupportAreaResponse { @@ -599,6 +610,8 @@ export interface LifeGasDataCreateLifePayOrderInput { userId?: string; + /** 娓犻亾Id */ + channelId?: string; productData?: LifeGasData; } @@ -691,7 +704,7 @@ } export interface ChannelsBaseInput { - channelId?: string; + checkChannelId?: string; } export interface AreaInfo { @@ -707,3 +720,8 @@ /** 蹇�熸绱� */ quickQuery?: string; } + +export interface GetPayStatusByOrderNoInput { + checkChannelId?: string; + orderNo?: string; +} -- Gitblit v1.9.1