作者 lyh

gx

@@ -56,7 +56,6 @@ class RankData extends BaseCommands @@ -56,7 +56,6 @@ class RankData extends BaseCommands
56 } 56 }
57 //收录数 57 //收录数
58 $indexed_pages_num = $site_res[$item['api_no']] ?? 0; 58 $indexed_pages_num = $site_res[$item['api_no']] ?? 0;
59 -  
60 $this->save_rank($item['project_id'], $res, $indexed_pages_num); 59 $this->save_rank($item['project_id'], $res, $indexed_pages_num);
61 } 60 }
62 //有小语种的 61 //有小语种的
@@ -161,6 +160,7 @@ class RankData extends BaseCommands @@ -161,6 +160,7 @@ class RankData extends BaseCommands
161 $model->lang = $lang; 160 $model->lang = $lang;
162 $model->data = $data; 161 $model->data = $data;
163 $model->updated_date = date('Y-m-d'); 162 $model->updated_date = date('Y-m-d');
  163 + @file_put_contents(storage_path('logs/lyh_error.log'), var_export($model, true) . PHP_EOL, FILE_APPEND);
164 $model->save(); 164 $model->save();
165 } 165 }
166 } 166 }
@@ -103,7 +103,6 @@ class QuanqiusouApi @@ -103,7 +103,6 @@ class QuanqiusouApi
103 Cache::put($key, $res, 24 * 3600); 103 Cache::put($key, $res, 24 * 3600);
104 } 104 }
105 } catch (\Exception | GuzzleException $e) { 105 } catch (\Exception | GuzzleException $e) {
106 - @file_put_contents(storage_path('logs/lyh_error.log'), var_export('获取谷歌排名数据失败', true) . PHP_EOL, FILE_APPEND);  
107 errorLog('获取谷歌排名数据失败', $api_no, $e); 106 errorLog('获取谷歌排名数据失败', $api_no, $e);
108 return false; 107 return false;
109 } 108 }