正在显示
1 个修改的文件
包含
3 行增加
和
4 行删除
| @@ -73,8 +73,7 @@ class WebSettingLogic extends BaseLogic | @@ -73,8 +73,7 @@ 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 | - $header['charset'] = "UTF-8"; | ||
| 77 | - $rs = http_get($urlStr,$header); | 76 | + $rs = $this->curl_get($urlStr); |
| 78 | var_dump($rs); | 77 | var_dump($rs); |
| 79 | die(); | 78 | die(); |
| 80 | return $this->success(); | 79 | return $this->success(); |
| @@ -83,7 +82,7 @@ class WebSettingLogic extends BaseLogic | @@ -83,7 +82,7 @@ class WebSettingLogic extends BaseLogic | ||
| 83 | public function curl_get($url){ | 82 | public function curl_get($url){ |
| 84 | $curl = curl_init(); | 83 | $curl = curl_init(); |
| 85 | curl_setopt_array($curl, array( | 84 | curl_setopt_array($curl, array( |
| 86 | - CURLOPT_URL => 'http://dev.globalso.site/api/updateHtmlNotify?project_id=1', | 85 | + CURLOPT_URL => $url, |
| 87 | CURLOPT_RETURNTRANSFER => true, | 86 | CURLOPT_RETURNTRANSFER => true, |
| 88 | CURLOPT_ENCODING => '', | 87 | CURLOPT_ENCODING => '', |
| 89 | CURLOPT_MAXREDIRS => 10, | 88 | CURLOPT_MAXREDIRS => 10, |
| @@ -94,6 +93,6 @@ class WebSettingLogic extends BaseLogic | @@ -94,6 +93,6 @@ class WebSettingLogic extends BaseLogic | ||
| 94 | )); | 93 | )); |
| 95 | $response = curl_exec($curl); | 94 | $response = curl_exec($curl); |
| 96 | curl_close($curl); | 95 | curl_close($curl); |
| 97 | - echo $response; | 96 | + return $response; |
| 98 | } | 97 | } |
| 99 | } | 98 | } |
-
请 注册 或 登录 后发表评论