From 817968389f1f6cec915da263d091c240906b8a24 Mon Sep 17 00:00:00 2001 From: PeratX <1215714524@qq.com> Date: Tue, 29 Jan 2019 16:35:29 +0800 Subject: [PATCH] Framework: release 2.1.0 --- src/iTXTech/SimpleFramework/Framework.php | 2 +- src/iTXTech/SimpleFramework/Util/Curl.php | 8 +------- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/src/iTXTech/SimpleFramework/Framework.php b/src/iTXTech/SimpleFramework/Framework.php index ad57862..80f14d1 100644 --- a/src/iTXTech/SimpleFramework/Framework.php +++ b/src/iTXTech/SimpleFramework/Framework.php @@ -36,7 +36,7 @@ class Framework implements OnCompletionListener{ public const PROG_NAME = "SimpleFramework"; - public const PROG_VERSION = "2.1.0-beta.2"; + public const PROG_VERSION = "2.1.0"; public const API_LEVEL = 6; public const CODENAME = "Navi"; diff --git a/src/iTXTech/SimpleFramework/Util/Curl.php b/src/iTXTech/SimpleFramework/Util/Curl.php index f11472d..8de9791 100644 --- a/src/iTXTech/SimpleFramework/Util/Curl.php +++ b/src/iTXTech/SimpleFramework/Util/Curl.php @@ -48,12 +48,6 @@ public function setUA(string $ua){ return parent::setUserAgent($ua); } - public function setGet(array $get){ - parent::setGet($get); - curl_setopt($this->curl, CURLOPT_URL, $this->url); - return $this; - } - public function setUrl(string $url){ $this->url = $url; curl_setopt($this->curl, CURLOPT_URL, $url); @@ -70,7 +64,7 @@ public function getContent(){ } public function exec(){ - + curl_setopt($this->curl, CURLOPT_URL, $this->url); $this->content = curl_exec($this->curl); $this->reload(); return $this->content;