From 07d73df3d817d01ce47f6c7b7a8d8514cd389295 Mon Sep 17 00:00:00 2001
From: zhengyiming <540361168@qq.com>
Date: 星期四, 13 三月 2025 10:19:44 +0800
Subject: [PATCH] release: @life-payment/core v0.0.3

---
 packages/core/src/lifeRechargeServices.ts |   39 ++++++++++++++++++++++++++++-----------
 1 files changed, 28 insertions(+), 11 deletions(-)

diff --git a/packages/core/src/lifeRechargeServices.ts b/packages/core/src/lifeRechargeServices.ts
index ef65c43..e62802a 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;
 }
 
@@ -599,6 +609,8 @@
 
 export interface LifeGasDataCreateLifePayOrderInput {
   userId?: string;
+  /** 娓犻亾Id */
+  channelId?: string;
   productData?: LifeGasData;
 }
 
@@ -691,7 +703,7 @@
 }
 
 export interface ChannelsBaseInput {
-  channelId?: string;
+  checkChannelId?: string;
 }
 
 export interface AreaInfo {
@@ -707,3 +719,8 @@
   /** 蹇�熸绱� */
   quickQuery?: string;
 }
+
+export interface GetPayStatusByOrderNoInput {
+  checkChannelId?: string;
+  orderNo?: string;
+}

--
Gitblit v1.9.1