调整优惠券部分
This commit is contained in:
@@ -82,11 +82,11 @@ export const getIntegralRecord = async function({ page, size }) {
|
||||
}
|
||||
|
||||
// 获取优惠券列表
|
||||
export const getRedeemableCoupons = async function({ page, size, type }) {
|
||||
export const getRedeemableCoupons = async function({ page = '', size = '', type }) {
|
||||
return await GET(`/wx/getRedeemableCoupons?page=${page}&size=${size}&type=${type}`);
|
||||
}
|
||||
|
||||
// 获取优惠券列表
|
||||
// 兑换/领取优惠券
|
||||
export const redeemCoupons = async function({ id, type }) {
|
||||
return await POST(`/wx/redeemCoupons`, { id, type });
|
||||
}
|
||||
|
Reference in New Issue
Block a user