|
@@ -77,7 +77,7 @@ class Apipf extends Start_Controller{
|
|
if($api != $this->api){
|
|
if($api != $this->api){
|
|
die("No data to be executed");
|
|
die("No data to be executed");
|
|
}
|
|
}
|
|
- $list = $this->customer->find_all("more_three = 1","id,shop,source,name,email,phone,money,num,country,province,city,street,address,address2,zipcode",'id asc',0,100);
|
|
|
|
|
|
+ $list = $this->customer->find_all("more_three = 1","id,shop,source,name,email,phone,money,num,country,province,city,street,address,address2,zipcode",'id asc',0,3);
|
|
//$list = $this->customer->find_all("id = 71015","id,shop,source,name,email,phone,money,num,country,province,city,street,address,address2,zipcode",'id asc',0,100);
|
|
//$list = $this->customer->find_all("id = 71015","id,shop,source,name,email,phone,money,num,country,province,city,street,address,address2,zipcode",'id asc',0,100);
|
|
if(empty($list)){
|
|
if(empty($list)){
|
|
die("This is a request without data");
|
|
die("This is a request without data");
|
|
@@ -175,13 +175,14 @@ class Apipf extends Start_Controller{
|
|
die;
|
|
die;
|
|
foreach($send_list as $item){
|
|
foreach($send_list as $item){
|
|
if(empty($item['orders'])){
|
|
if(empty($item['orders'])){
|
|
-
|
|
|
|
|
|
+ $this->customer->save([
|
|
|
|
+ 'is_tb'=>1,
|
|
|
|
+ ],$item['customer_id']);
|
|
continue;
|
|
continue;
|
|
}
|
|
}
|
|
$res = $this->sendHttp($url,$header,$item);
|
|
$res = $this->sendHttp($url,$header,$item);
|
|
if($res){
|
|
if($res){
|
|
$this->customer->save([
|
|
$this->customer->save([
|
|
- 'more_three'=>3,
|
|
|
|
'is_tb'=>1,
|
|
'is_tb'=>1,
|
|
],$item['customer_id']);
|
|
],$item['customer_id']);
|
|
}
|
|
}
|
|
@@ -328,7 +329,7 @@ class Apipf extends Start_Controller{
|
|
];
|
|
];
|
|
}
|
|
}
|
|
return [
|
|
return [
|
|
- 'ordered_mount'=>$order_mount,
|
|
|
|
|
|
+ 'order_mount'=>$order_mount,
|
|
'order_num'=>$order_num,
|
|
'order_num'=>$order_num,
|
|
'order_qty'=>$order_qty,
|
|
'order_qty'=>$order_qty,
|
|
'orders'=>$final_list,
|
|
'orders'=>$final_list,
|