p-honggang.li
2025-09-03 9d4f45939870dde9b59d354616d87536d6274ef1
src/api/pointsApi.ts
@@ -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`,  // 使用新的专门积分扣减接口
      method: 'post',
@@ -110,7 +110,8 @@
        orderId,
        remark: remark || `订单${orderId}交易扣减积分`,
        dataCategory: dataCategory || 'resource_transaction',
        dataType: 1               // 1表示消耗
        dataType: 1,               // 1表示消耗
        providerId: providerId
      },
    }) as ApiPromise
  },