...
|
...
|
@@ -186,10 +186,11 @@ public function websiteHtml(Request $request){ |
|
|
$res = $this->curlGet($requestUrl);
|
|
|
$url = isset($res["data"]["url"]) && !empty($res["data"]["url"]) ? urldecode($res["data"]["url"]) : "";
|
|
|
if ($res["status"] != self::SUCCESS || $url == ""){
|
|
|
return $this->error('请求失败!');
|
|
|
$msg = isset($res["message"]) && !empty($res["message"]) ? $res["message"] : "请求失败!";
|
|
|
return $this->error($msg);
|
|
|
}
|
|
|
} catch (\Exception $e) {
|
|
|
return $this->error('请求失败!');
|
|
|
return $this->error($e->getMessage());
|
|
|
}
|
|
|
return $this->websiteHtmlHandle($url);
|
|
|
}
|
...
|
...
|
|