From bd125eecd57d2f4e559c6170d20157591300fe3d Mon Sep 17 00:00:00 2001 From: p-honggang.li <p-honggang.li@pcitc.com> Date: 星期四, 04 九月 2025 20:57:44 +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