|
|
@@ -22,11 +22,12 @@ class SpecialOrderHook
|
|
|
#[Hook(PaymentSuccessEvent::class)]
|
|
|
public function debugMode(PaymentSuccessEvent $event): void
|
|
|
{
|
|
|
- if ($this->config->isDebug()) {
|
|
|
+ if ($this->config->debug) {
|
|
|
try {
|
|
|
$this->opSpecialOrder($event->orderNo, 2);
|
|
|
+ Log::info('特殊订单报备成功{order_no}', ['order_no' => $event->orderNo]);
|
|
|
} catch (\Exception $e) {
|
|
|
- Log::error('特殊订单报备失败', ['order_no' => $event->orderNo, 'msg' => $e->getMessage()]);
|
|
|
+ Log::error('特殊订单报备失败{order_no}', ['order_no' => $event->orderNo, 'msg' => $e->getMessage()]);
|
|
|
}
|
|
|
}
|
|
|
}
|