From 8a709ba6db50831048f9c3e2452ea6dc6c3de36f Mon Sep 17 00:00:00 2001
From: Bang Hu <hu_bang@hotmail.com>
Date: 星期五, 12 九月 2025 15:45:33 +0800
Subject: [PATCH] bug修改代码提交

---
 src/api/pointsApi.ts |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/api/pointsApi.ts b/src/api/pointsApi.ts
index 2cc74b2..3c1e0e4 100644
--- a/src/api/pointsApi.ts
+++ b/src/api/pointsApi.ts
@@ -27,7 +27,7 @@
   // 淇濆瓨绉垎瑙勫垯閰嶇疆
   savePointsRules(data: object): ApiPromise {
     return createAxios({
-      url: `${url}rules/update`,
+      url: `${url}rule/update`,
       data: data,
     }) as ApiPromise
   },
@@ -99,7 +99,7 @@
   },
 
   // 浣跨敤涓撻棬鐨勭Н鍒嗘墸鍑忔帴鍙�
-  deductPointsByFlow(userId: string, unitId: string, points: number, orderId: string, remark?: string, dataCategory?: string): ApiPromise {
+  deductPointsByFlow(userId: string, unitId: string, points: number, orderId: string, remark?: string, dataCategory?: string, providerId?: String): ApiPromise {
     return createAxios({
       url: `${url}user/deduct`,  // 浣跨敤鏂扮殑涓撻棬绉垎鎵e噺鎺ュ彛
       method: 'post',
@@ -110,7 +110,8 @@
         orderId,
         remark: remark || `璁㈠崟${orderId}浜ゆ槗鎵e噺绉垎`,
         dataCategory: dataCategory || 'resource_transaction',
-        dataType: 1               // 1琛ㄧず娑堣��
+        dataType: 1,               // 1琛ㄧず娑堣��
+        providerId: providerId
       },
     }) as ApiPromise
   },

--
Gitblit v1.8.0