作者 lyh

gx

@@ -248,8 +248,10 @@ class RankDataLogic extends BaseLogic @@ -248,8 +248,10 @@ class RankDataLogic extends BaseLogic
248 $list = collect($list30)->merge($list30_0)->merge($list100)->merge($list0)->filter(function ($item) { 248 $list = collect($list30)->merge($list30_0)->merge($list100)->merge($list0)->filter(function ($item) {
249 //搜索 249 //搜索
250 if ($this->request['search']) { 250 if ($this->request['search']) {
251 - @file_put_contents(storage_path('logs/lyh_error.log'), var_export($item['keyword'], true) . PHP_EOL, FILE_APPEND);  
252 - @file_put_contents(storage_path('logs/lyh_error.log'), var_export($this->request['search'], true) . PHP_EOL, FILE_APPEND); 251 + if($this->user['project_id'] = 1){
  252 + @file_put_contents(storage_path('logs/lyh_error.log'), var_export($item['keyword'], true) . PHP_EOL, FILE_APPEND);
  253 + @file_put_contents(storage_path('logs/lyh_error.log'), var_export($this->request['search'], true) . PHP_EOL, FILE_APPEND);
  254 + }
253 return strpos(strtolower($item['keyword']), strtolower($this->request['search'])) !== false; 255 return strpos(strtolower($item['keyword']), strtolower($this->request['search'])) !== false;
254 } 256 }
255 //前几名 257 //前几名