合并分支 'lyh-server' 到 'master'
变更数据 查看合并请求 !3288
正在显示
1 个修改的文件
包含
5 行增加
和
2 行删除
| @@ -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 | } |
-
请 注册 或 登录 后发表评论