|
|
@@ -117,7 +117,8 @@ class PaymentProvider implements PaymentProviderInterface
|
|
|
'out_trade_no' => $data['out_trade_no'],
|
|
|
])->findOrEmpty();
|
|
|
if ($payment->isEmpty()) {
|
|
|
- throw new \RuntimeException('订单不存在或已结束');
|
|
|
+ Log::warning(__METHOD__ . '订单不存在{out_trade_no}', ['out_trade_no' => $data['out_trade_no']] );
|
|
|
+ throw_logic_exception('订单不存在或已结束',httpCode: 404);
|
|
|
}
|
|
|
$queryResult = $this->query($payment['id']);
|
|
|
return new PaymentNotifyResult(
|
|
|
@@ -131,7 +132,8 @@ class PaymentProvider implements PaymentProviderInterface
|
|
|
// 转账完成
|
|
|
$transferBill = $this->wechatpayTransferBillEntity->where('out_bill_no', $data['out_bill_no'])->findOrEmpty();
|
|
|
if ($transferBill->isEmpty()) {
|
|
|
- throw new \RuntimeException('转账单不存在');
|
|
|
+ Log::warning(__METHOD__ . '订单不存在{out_trade_no}', ['out_trade_no' => $data['out_trade_no']] );
|
|
|
+ throw_logic_exception('转账单不存在', httpCode: 404);
|
|
|
}
|
|
|
$this->wechatpayTransferBillEntity->refreshTransferBill($transferBill->id);
|
|
|
return new PaymentNotifyResult(
|