This commit is contained in:
@@ -11,10 +11,15 @@ export const walletApi = {
|
||||
},
|
||||
|
||||
recharge(identifier, amount, payment_method) {
|
||||
const data = { identifier, amount, payment_method };
|
||||
if (payment_method === 'wechat') {
|
||||
data.app_type = APP_TYPE;
|
||||
}
|
||||
|
||||
return request({
|
||||
url: '/api/c/v1/wallet/recharge',
|
||||
method: 'POST',
|
||||
data: { identifier, amount, payment_method, app_type: APP_TYPE }
|
||||
data
|
||||
});
|
||||
},
|
||||
|
||||
@@ -59,4 +64,4 @@ export const walletApi = {
|
||||
data: { identifier, page, page_size, ...params }
|
||||
});
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user