fix
This commit is contained in:
@@ -7,7 +7,7 @@ use GuzzleHttp\Client as HTTPClient;
|
||||
class CoreServiceApi
|
||||
{
|
||||
|
||||
public static function NodeServiceApi($url_path, $data){
|
||||
public static function NodeServiceApi($url_path, $data_json){
|
||||
|
||||
$ch = curl_init();
|
||||
|
||||
@@ -15,7 +15,7 @@ public static function NodeServiceApi($url_path, $data){
|
||||
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
|
||||
curl_setopt($ch, CURLOPT_POST, 1);
|
||||
// curl_setopt($ch, CURLOPT_POSTFIELDS, "{'username':'$username','password':'$password',\"sessionid\":\"DUMMYSESSION\"}");
|
||||
curl_setopt($ch, CURLOPT_POSTFIELDS, "{\"username\":\"$username\",\"password\":\"$password\",\"sessionid\":\"DUMMYSESSION\"}");
|
||||
curl_setopt($ch, CURLOPT_POSTFIELDS, $data_json);
|
||||
curl_setopt($ch, CURLOPT_ENCODING, 'gzip, deflate');
|
||||
|
||||
$headers = array();
|
||||
|
||||
Reference in New Issue
Block a user