|
|
@@ -7,6 +7,7 @@ use App\Services\OrderService;
|
|
|
use Illuminate\Bus\Queueable;
|
|
|
use Illuminate\Contracts\Queue\ShouldQueue;
|
|
|
use Illuminate\Database\Eloquent\Collection;
|
|
|
+use Illuminate\Database\Eloquent\Model;
|
|
|
use Illuminate\Foundation\Bus\Dispatchable;
|
|
|
use Illuminate\Queue\InteractsWithQueue;
|
|
|
|
|
|
@@ -42,7 +43,7 @@ class OrderCreateInstantBill implements ShouldQueue
|
|
|
if (!$service->createInstantBill($order))
|
|
|
LogService::log(__METHOD__,"ERROR-订单生成即时账单",$order->toJson());
|
|
|
}catch (\Error|\Exception $e){
|
|
|
- LogService::log(__METHOD__,"ERROR-订单生成即时账单",$order->toJson()." | ".$e->getMessage());
|
|
|
+ LogService::log(__METHOD__,"ERROR-订单生成即时账单",(is_subclass_of($order,Model::class) ? $order->toJson() : json_encode($order))." | ".$e->getMessage());
|
|
|
$errors = ["order_".$order->id.":".$e->getMessage()];
|
|
|
}
|
|
|
}
|