This commit is contained in:
dkorol 2016-04-14 14:28:23 +03:00
parent 76dc6535cc
commit d862d98001

View File

@ -77,13 +77,6 @@ class OpencartApiClient {
curl_setopt($curl, CURLOPT_COOKIEJAR, DIR_APPLICATION . '/' . $this->cookieFileName . '.txt'); curl_setopt($curl, CURLOPT_COOKIEJAR, DIR_APPLICATION . '/' . $this->cookieFileName . '.txt');
$json = json_decode(curl_exec($curl), true); $json = json_decode(curl_exec($curl), true);
//$json = curl_exec($curl);
//var_dump($json);
//var_dump(curl_getinfo($curl));
//if(isset($json['error']))
//return false;
curl_close($curl); curl_close($curl);
@ -213,7 +206,7 @@ class OpencartApiClient {
); );
$g = $this->request('order/edit', array('order_id' => $order_id), $order); $g = $this->request('order/edit', array('order_id' => $order_id), $order);
var_dump($a, $b, $c, $d, $e, $f, $g); //var_dump($a, $b, $c, $d, $e, $f, $g);
} }
public function addOrder($data) { public function addOrder($data) {
@ -295,7 +288,7 @@ class OpencartApiClient {
); );
$h = $this->request('order/add', array(), $order); $h = $this->request('order/add', array(), $order);
var_dump($a, $b, $c, $d, $e, $f, $g, $h); //var_dump($a, $b, $c, $d, $e, $f, $g, $h);
} }
private function getInnerIpAddr() { private function getInnerIpAddr() {