findOrEmpty()->toArray(); if($stock_type == 1){ StoreProductLogic::ordinary($product_arr,$store_id,$admin_id,$find,$warehouse_id); }elseif($stock_type == 2){ StoreProductLogic::exchange($product_arr,$store_id,$admin_id,$find,$warehouse_id); } } public function onConsumeFailure(\Throwable $e, $package) { $package['max_attempts'] = 0; Log::error('store-storage队列消费失败: ' . $e->getMessage() . ',line:' . $e->getLine() . ',file:' . $e->getFile()); return $package; } }