public function putInfo($doUrl, $inputs, $number = null) { $url = setApiUrl($doUrl, $number); $response = Unirest\Request::put($url, $this->_headers, json_encode($inputs)); return json_encode($response); if ($response->code == 200) { // return $response->body; return 1; } return 0; }
public function putInfo($url, $inputs = null, $param = null) { $url = setApiUrl($url, $param); $response = Unirest\Request::put($url, $this->_headers, json_encode($inputs)); return dealResponse($response); }