| | |
| | | ...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, |
| | |
| | | } |
| | | |
| | | /** 根据订单号获取支付状态 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 || {}), |
| | | } |
| | | ); |
| | |
| | | |
| | | export interface LifePhoneDataCreateLifePayOrderInput { |
| | | userId?: string; |
| | | /** 渠道Id */ |
| | | channelId?: string; |
| | | productData?: LifePhoneData; |
| | | } |
| | | |
| | |
| | | |
| | | export interface LifeElectricDataCreateLifePayOrderInput { |
| | | userId?: string; |
| | | /** 渠道Id */ |
| | | channelId?: string; |
| | | productData?: LifeElectricData; |
| | | } |
| | | |
| | |
| | | |
| | | export interface LifeGasDataCreateLifePayOrderInput { |
| | | userId?: string; |
| | | /** 渠道Id */ |
| | | channelId?: string; |
| | | productData?: LifeGasData; |
| | | } |
| | | |
| | |
| | | } |
| | | |
| | | export interface ChannelsBaseInput { |
| | | channelId?: string; |
| | | checkChannelId?: string; |
| | | } |
| | | |
| | | export interface AreaInfo { |
| | |
| | | /** 快速检索 */ |
| | | quickQuery?: string; |
| | | } |
| | | |
| | | export interface GetPayStatusByOrderNoInput { |
| | | checkChannelId?: string; |
| | | orderNo?: string; |
| | | } |