Authored by hongweigao

退货提交,调接口

... ... @@ -140,13 +140,12 @@ const refundSubmit = (orderCode, uid, goods, payment) =>{
let options = {
method: 'app.refund.submit',
orderCode: orderCode,
order_code: orderCode,
uid: uid,
goods: goods,
payment: payment
};
console.log(options);
return api.post('', options);
};
... ...
... ... @@ -263,8 +263,8 @@ const getOrderRefund = (orderCode, uid) => {
const saveRefund = (req, uid) => {
let process = function*() {
let orderCode = req.body.orderCode,
goods = JSON.parse(req.body.goods),
payment = JSON.parse(req.body.payment);
goods = req.body.goods,
payment = req.body.payment;
if (_.isEmpty(orderCode) || orderCode < 1 ||
... ...