|
@@ -125,6 +125,7 @@ class User
|
|
|
private function post($url, $param = [])
|
|
|
{
|
|
|
$this->param = $param;
|
|
|
+ $this->header=['Content-Type' => 'multipart/json;charset=utf-8'];
|
|
|
$this->makeHeader();
|
|
|
if (is_array($param)) $post = http_build_query($param);
|
|
|
$curl = curl_init();
|
|
@@ -214,7 +215,6 @@ class User
|
|
|
public function handle(string $key = '', array $param = [])
|
|
|
{
|
|
|
$rs = $this->post($this->host . $this->api[$key], $param);
|
|
|
-// echo $rs;exit;
|
|
|
return json_decode($rs, true);
|
|
|
}
|
|
|
|
|
@@ -223,6 +223,7 @@ class User
|
|
|
{
|
|
|
$rs = $this->post($this->host . $this->api[$key], $param);
|
|
|
echo $rs;
|
|
|
+
|
|
|
exit;
|
|
|
}
|
|
|
|