123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- <?php
- // +----------------------------------------------------------------------
- // | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
- // +----------------------------------------------------------------------
- // | Copyright (c) 2016~2020 https://www.crmeb.com All rights reserved.
- // +----------------------------------------------------------------------
- // | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
- // +----------------------------------------------------------------------
- // | Author: CRMEB Team <admin@crmeb.com>
- // +----------------------------------------------------------------------
- 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;
- }
- }
|