|
@@ -111,7 +111,7 @@ class Apipf extends Start_Controller{
|
|
|
$header = [];
|
|
|
$url = $this->url;
|
|
|
|
|
|
- var_dump($send_list);
|
|
|
+ //var_dump($send_list);
|
|
|
|
|
|
foreach($send_list as $item){
|
|
|
if(empty($item['orders'])){
|
|
@@ -319,7 +319,7 @@ class Apipf extends Start_Controller{
|
|
|
}
|
|
|
$final_list[] = [
|
|
|
'shop'=>$v['shop'],
|
|
|
- 'increment id'=>$v['orderinfo'],
|
|
|
+ 'increment_id'=>$v['orderinfo'],
|
|
|
'status'=>$v['state'],
|
|
|
'grand_total'=>$v['shouldmoney'],
|
|
|
'order_created'=>$v['dtime'],
|
|
@@ -448,6 +448,7 @@ class Apipf extends Start_Controller{
|
|
|
}
|
|
|
|
|
|
private function sendHttp($url,$header,$list){
|
|
|
+ var_dump($list);
|
|
|
$ch = curl_init();
|
|
|
curl_setopt($ch, CURLOPT_URL, $url);
|
|
|
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
|
|
@@ -459,6 +460,7 @@ class Apipf extends Start_Controller{
|
|
|
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
|
|
|
$res = curl_exec($ch);
|
|
|
$res = json_decode($res,true);
|
|
|
+ var_dump($res);
|
|
|
return $res;
|
|
|
}
|
|
|
|