|
@@ -140,7 +140,7 @@ class PayOrderService extends CrudService {
|
|
|
const result = _.get(body, 'result');
|
|
|
console.log(result);
|
|
|
if (!result) throw new BusinessError(ErrorCode.BADPARAM, '参数错误');
|
|
|
- const { out_trade_no: order_no, trade_state, payer } = body;
|
|
|
+ const { out_trade_no: order_no, trade_state, payer } = result;
|
|
|
const obj = {};
|
|
|
if (trade_state === 'SUCCESS') obj.status = '1';
|
|
|
else if (trade_state === 'REFUND') obj.status = '-3';
|