京东打印

This commit is contained in:
杨建炊 2025-03-03 10:29:28 +08:00
parent 077fa9a6a2
commit 73c15ac8b7
3 changed files with 4 additions and 1 deletions

View File

@ -11,7 +11,7 @@ use Illuminate\Support\Facades\Log;
class MiaoXuan extends BusinessClient class MiaoXuan extends BusinessClient
{ {
public $domain = "http://shop.dev.chutang66.com"; public $domain = "http://shop.chutang66.com";
public function auth() public function auth()
{ {

View File

@ -48,6 +48,7 @@ class WayBillService
$waybill->waybill_code = $resp['waybillNo']; $waybill->waybill_code = $resp['waybillNo'];
$waybill->save(); $waybill->save();
BusinessOrder::query()->where('order_sn', $waybill->order_sn)->update(["shipping_status" => BusinessOrderShippingStatus::SHIPPED]);
//物流发货 //物流发货
event(new CreateLogisticEvent($waybill->shop_id, $waybill->order_sn, $waybill->waybill_code)); event(new CreateLogisticEvent($waybill->shop_id, $waybill->order_sn, $waybill->waybill_code));
} }

View File

@ -1,5 +1,7 @@
<?php <?php
use App\Http\Enum\BusinessOrderShippingStatus;
use App\Models\BusinessOrder;
use App\Services\Business\BusinessFactory; use App\Services\Business\BusinessFactory;
use Illuminate\Foundation\Inspiring; use Illuminate\Foundation\Inspiring;