作者 李小龙

失败msg

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