// +---------------------------------------------------------------------- namespace app\jobs\order; use app\services\order\StoreDeliveryOrderServices; use crmeb\basic\BaseJobs; use crmeb\traits\QueueTrait; use think\facade\Log; /** * 同城配送 * Class CityDeliveryJob * @package app\jobs */ class CityDeliveryJob extends BaseJobs { use QueueTrait; /** * 同步创建、更新达达门店信息 * @param $id * @param $is_new * @return bool */ public function syncCityShop($id, $is_new) { try { /** @var StoreDeliveryOrderServices $deliveryOrderServices */ $deliveryOrderServices = app()->make(StoreDeliveryOrderServices::class); $deliveryOrderServices->syncCityShop((int)$id); } catch (\Throwable $e) { Log::error('同步创建同城配送达达门店失败,原因:'. $e->getMessage()); } return true; } }