|
...
|
...
|
@@ -232,21 +232,14 @@ class IndexController extends BaseController |
|
|
|
public function prInfoDownload()
|
|
|
|
{
|
|
|
|
$url = 'http://crawl.scraper.waimaoq.com/export/issuewire';
|
|
|
|
$response = Http::withHeaders([
|
|
|
|
'Accept' => 'application/json',
|
|
|
|
])->get($url, [
|
|
|
|
$response = Http::withHeaders(['Accept' => 'application/json',])->get($url, [
|
|
|
|
'page' => $this->page,
|
|
|
|
'pagesize' => $this->row,
|
|
|
|
'token' => 'MT0CM7y4tdFTFTm'
|
|
|
|
]);
|
|
|
|
if ($response->successful()) {
|
|
|
|
$result = $response->json();
|
|
|
|
$this->response('success', Code::SUCCESS, [
|
|
|
|
'url' => $url,
|
|
|
|
'list' => $result,
|
|
|
|
'page' => $this->page,
|
|
|
|
'pagesize' => $this->row
|
|
|
|
]);
|
|
|
|
$this->response('success', Code::SUCCESS, ['url' => $url, 'list' => $result, 'page' => $this->page, 'pagesize' => $this->row]);
|
|
|
|
} else {
|
|
|
|
$this->response('请求失败', Code::SYSTEM_ERROR, ['status_code' => $response->status(), 'error' => $response->body()]);
|
|
|
|
}
|
...
|
...
|
|