where('shop_id', $event->shopId) ->where('order_sn', $event->orderSn) ->value('waybill_code'); if (empty($waybillNo)) { return; } $shop = Shop::query()->findOrFail($event->shopId); $client = BusinessFactory::init()->make($shop['plat_id'])->setShop($shop); $client->cancelLogistic($event->orderSn, $event->waybillNo); } }