|
|
@@ -28,15 +28,24 @@ class Queue extends Start_Controller {
|
|
|
$time =time()-24*3600 *3;
|
|
|
$list = $this->zztmpdata->find_all("act_name = 'crm_order' and create_time > ".$time,"*","id asc",0,100);
|
|
|
//$list = $this->zztmpdata->find_all("id = 181","*","id desc",0,50);
|
|
|
+ $log_list = [];
|
|
|
foreach($list as $v){
|
|
|
|
|
|
$order_info = json_decode($v['content'],true);
|
|
|
// if($order_info['shop'] != 4){
|
|
|
// $this->zztmpdata->remove($v['id']);
|
|
|
// }
|
|
|
+ $log_list[] = [
|
|
|
+ 'number' => $order_info['number'],
|
|
|
+ 'type' => $v['type'],
|
|
|
+ ];
|
|
|
$this->logic_crm->panduan($order_info,$v['type'],[]);
|
|
|
$this->zztmpdata->remove($v['id']);
|
|
|
usleep(10);
|
|
|
}
|
|
|
+
|
|
|
+ echo json_encode($log_list);
|
|
|
+
|
|
|
+
|
|
|
}
|
|
|
}
|