make(ProductRepository::class)->clearMerchantProduct($merId); $servers = [ app()->make(ProductCateRepository::class), app()->make(StoreCategoryRepository::class), app()->make(ParameterRepository::class), app()->make(ParameterTemplateRepository::class), app()->make(ParameterValueRepository::class), app()->make(GuaranteeTemplateRepository::class), app()->make(GuaranteeValueRepository::class), app()->make(ProductLabelRepository::class), app()->make(ProductReplyRepository::class), app()->make(StoreDiscountRepository::class), app()->make(StoreDiscountProductRepository::class), app()->make(StoreCouponRepository::class), app()->make(StoreCouponUserRepository::class), app()->make(GroupDataRepository::class), app()->make(ConfigValueRepository::class), app()->make(ShippingTemplateRepository::class), ]; foreach ($servers as $server) { $server->clear($merId,'mer_id'); } }catch (\Exception $e){ Log::info('商户ID:'.$data['mer_id'].'清除出错:'.$e->getMessage()); } $job->delete(); } public function failed($data) { // TODO: Implement failed() method. } }