作者 lyh

gx

@@ -101,8 +101,6 @@ if (!function_exists('http_get')) { @@ -101,8 +101,6 @@ if (!function_exists('http_get')) {
101 curl_setopt($ch1, CURLOPT_SSL_VERIFYHOST, false); 101 curl_setopt($ch1, CURLOPT_SSL_VERIFYHOST, false);
102 $access_txt = curl_exec($ch1); 102 $access_txt = curl_exec($ch1);
103 curl_close($ch1); 103 curl_close($ch1);
104 - var_dump($access_txt);  
105 - die();  
106 return json_decode($access_txt, true); 104 return json_decode($access_txt, true);
107 } 105 }
108 } 106 }
@@ -73,7 +73,8 @@ class WebSettingLogic extends BaseLogic @@ -73,7 +73,8 @@ class WebSettingLogic extends BaseLogic
73 } 73 }
74 $updateNotifyModel->edit(['status'=>1],['project_id'=>$this->user['project_id'],'status'=>0]); 74 $updateNotifyModel->edit(['status'=>1],['project_id'=>$this->user['project_id'],'status'=>0]);
75 $urlStr = 'https://'.$this->user['domain'].'/api/updateHtmlNotify?project_id='.$this->user['project_id']; 75 $urlStr = 'https://'.$this->user['domain'].'/api/updateHtmlNotify?project_id='.$this->user['project_id'];
76 - $rs = http_get($urlStr,["charset = UTF-8"]); 76 + $header['charset'] = "UTF-8";
  77 + $rs = http_get($urlStr,$header);
77 return $this->success(); 78 return $this->success();
78 } 79 }
79 } 80 }