作者 李宇航

合并分支 'lyh-server' 到 'master'

变更数据



查看合并请求 !3288
@@ -232,7 +232,10 @@ class IndexController extends BaseController @@ -232,7 +232,10 @@ class IndexController extends BaseController
232 public function prInfoDownload() 232 public function prInfoDownload()
233 { 233 {
234 $url = 'http://crawl.scraper.waimaoq.com/export/issuewire?token=MT0CM7y4tdFTFTm'; 234 $url = 'http://crawl.scraper.waimaoq.com/export/issuewire?token=MT0CM7y4tdFTFTm';
235 - $list = Http::get($url);  
236 - $this->response('success', Code::SUCCESS, ['url'=>$url,'list'=>$list]); 235 + $response = Http::get($url);
  236 + if ($response->successful()) {
  237 + $result = $response->json();
  238 + }
  239 + $this->response('success', Code::SUCCESS, ['url'=>$url,'list'=>$result ?? []]);
237 } 240 }
238 } 241 }