作者 赵彬吉

update

@@ -72,7 +72,7 @@ class RankDataTask extends Command @@ -72,7 +72,7 @@ class RankDataTask extends Command
72 echo 'success:' . $item['id'] . PHP_EOL; 72 echo 'success:' . $item['id'] . PHP_EOL;
73 }catch (\Exception $e){ 73 }catch (\Exception $e){
74 echo 'error:' . $item['id'] . $e->getMessage() . PHP_EOL; 74 echo 'error:' . $item['id'] . $e->getMessage() . PHP_EOL;
75 - Log::channel('rank_data')->error('排名数据更新失败' . $e->getMessage(), $item); 75 + Log::channel('rank_data')->error('排名数据更新失败' . $e->getMessage(), $item->toArray());
76 $this->retry($item, $e->getMessage()); 76 $this->retry($item, $e->getMessage());
77 } 77 }
78 } 78 }