| | |
| | | }, |
| | | |
| | | // 使用专门的积分扣减接口 |
| | | 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', |
| | |
| | | orderId, |
| | | remark: remark || `订单${orderId}交易扣减积分`, |
| | | dataCategory: dataCategory || 'resource_transaction', |
| | | dataType: 1 // 1表示消耗 |
| | | dataType: 1, // 1表示消耗 |
| | | providerId: providerId |
| | | }, |
| | | }) as ApiPromise |
| | | }, |