From ebd3822a08479833430cc51ff441c130b3795306 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Cwanyongkang=E2=80=9D?= <“937888580@qq.com”> Date: Thu, 27 May 2021 16:51:39 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9E=81=E5=AE=A2=E6=8C=87=E5=AE=9A=E5=9C=B0?= =?UTF-8?q?=E5=8C=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/product/controller/AccountAddress.php | 2 +- fastphp/func/common.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/product/controller/AccountAddress.php b/app/product/controller/AccountAddress.php index 56bbefd..fcca078 100644 --- a/app/product/controller/AccountAddress.php +++ b/app/product/controller/AccountAddress.php @@ -29,7 +29,7 @@ class AccountAddress } $url = 'http://city.webok.me/apichange/?user='.$account.'&password='.$password.'&type=edit¤t_line_list='.$add_text.'&line_id_list='.$add_id; - $content = linkcurl($url,'GET'); + $content = linkcurl($url,'GET',[],[],0); echo $content; } diff --git a/fastphp/func/common.php b/fastphp/func/common.php index 6b457bc..81bef64 100644 --- a/fastphp/func/common.php +++ b/fastphp/func/common.php @@ -148,7 +148,7 @@ function realname($data){ * @param int $ipost [是否采用POST形式] * @return string */ -function linkcurl($url,$method,$params=[],$header=[]){ +function linkcurl($url,$method,$params=[],$header=[],$header_show =1){ $httpInfo = array(); $ch = curl_init(); @@ -157,7 +157,7 @@ function linkcurl($url,$method,$params=[],$header=[]){ curl_setopt($ch, CURLOPT_HTTPHEADER, $header); curl_setopt($ch, CURLOPT_FAILONERROR, false); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); - curl_setopt($ch, CURLOPT_HEADER, 1); //是否显示头信息 + curl_setopt($ch, CURLOPT_HEADER, $header_show); //是否显示头信息 if (1 == strpos("$".$url, "https://")) {