Browse Source

支付退款

master
weigang 5 years ago
parent
commit
0336918425
  1. 8
      app/Service/v3/Implementations/OrderOnlineService.php
  2. 2
      app/Service/v3/Implementations/PaymentService.php

8
app/Service/v3/Implementations/OrderOnlineService.php

@ -209,9 +209,9 @@ class OrderOnlineService implements OrderOnlineServiceInterface
'price' => $goods->price,
'original_price' => $goods->original_price,
'vip_price' => $goods->vip_price,
'name' => $goods->name,
'goods_unit' => $goods->goods_unit,
'cover_img' => $goods->cover_img,
'name' => $goods->name ?: '',
'goods_unit' => $goods->goods_unit ?: '',
'cover_img' => $goods->cover_img ?: '',
'spec' => json_encode($goods->spec),
];
}
@ -346,7 +346,7 @@ class OrderOnlineService implements OrderOnlineServiceInterface
} catch (Exception $e) {
Db::rollBack();
$this->log->event(LogLabel::ORDER_ONLINE_LOG, ['msg' => $e->getMessage()]);
throw new ErrorCodeException(ErrorCode::ORDER_ONLINE_FAIL, $e->getMessage());
throw new ErrorCodeException(ErrorCode::ORDER_ONLINE_FAIL);
}
}

2
app/Service/v3/Implementations/PaymentService.php

@ -142,7 +142,7 @@ class PaymentService implements PaymentServiceInterface
throw new ErrorCodeException(ErrorCode::REFUND_PAYMENT_FAIL,$result['err_code_des']);
}
} catch (\Exception $e) {
$this->log->event(LogLabel::ORDER_PAYMENT_LOG, ['payment_do_exception_msg' => $e->getMessage()]);
$this->log->event(LogLabel::ORDER_REFUND_LOG, ['payment_do_exception_msg' => $e->getMessage()]);
throw new ErrorCodeException(ErrorCode::REFUND_PAYMENT_FAIL, '[退款失败]'.$e->getMessage());
}

Loading…
Cancel
Save