// +---------------------------------------------------------------------- namespace crmeb\jobs; use app\common\repositories\store\product\ProductBatchProcessRepository; use crmeb\interfaces\JobInterface; use think\facade\Log; class BatchUpdateProductPriceJob implements JobInterface { public function fire($job, $data) { try { app()->make(ProductBatchProcessRepository::class)->batchPrice($data); $job->delete(); } catch (\Exception $exception) { Log::info(var_export($exception, 1)); } } public function failed($data) { // TODO: Implement failed() method. } }