| | |
| | | ...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 || {}), |
| | | } |
| | | ); |
| | |
| | | ...(options || {}), |
| | | }); |
| | | } |
| | | |
| | | /** 获取须知 GET /api/LifePay/GetIntroInfo */ |
| | | async getIntroInfo(params: APIgetIntroInfoParams, options?: RequestConfig) { |
| | | return this.request<LifePayIntroInfoOutput[]>('/api/LifePay/GetIntroInfo', { |
| | | method: 'GET', |
| | | params: { |
| | | ...params, |
| | | }, |
| | | ...(options || {}), |
| | | }); |
| | | } |
| | | } |
| | | |
| | | export interface PhoneMesssageCodeLoginInput { |
| | |
| | | |
| | | export interface LifePhoneDataCreateLifePayOrderInput { |
| | | userId?: string; |
| | | /** 渠道Id */ |
| | | channelId?: string; |
| | | productData?: LifePhoneData; |
| | | } |
| | | |
| | |
| | | |
| | | export interface LifeElectricDataCreateLifePayOrderInput { |
| | | userId?: string; |
| | | /** 渠道Id */ |
| | | channelId?: string; |
| | | productData?: LifeElectricData; |
| | | } |
| | | |
| | |
| | | refundCheckRemark?: string; |
| | | /** 渠道流水号 */ |
| | | acoolyOrderNo?: string; |
| | | frontStatus?: LifeRechargeConstants.LifePayOrderFrontStatusEnum; |
| | | lifePayRefundStatus?: LifeRechargeConstants.LifePayRefundStatusEnum; |
| | | acoolyStatus?: LifeRechargeConstants.ACOOLYStatusEnum; |
| | | } |
| | | |
| | | export interface ElectricSupportAreaResponse { |
| | |
| | | |
| | | 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; |
| | | } |
| | | |
| | | export interface APIgetIntroInfoParams { |
| | | type?: LifeRechargeConstants.LifePayOrderTypeEnum; |
| | | } |
| | | |
| | | export interface LifePayIntroInfoOutput { |
| | | type?: IntroInfoTypeEnum; |
| | | lifePayType?: LifeRechargeConstants.LifePayOrderTypeEnum; |
| | | /** 摘要 */ |
| | | contentSummary?: string; |
| | | /** 文本内容 */ |
| | | content?: string; |
| | | /** 图片/视频路径 */ |
| | | path?: string; |
| | | /** 排序 */ |
| | | sequence?: number; |
| | | } |
| | | |
| | | export type IntroInfoTypeEnum = 0 | 1 | 2 | 3 | 4; |