|
|
@@ -7,6 +7,7 @@ class QueueCbt extends Start_Controller {
|
|
|
parent::__construct();
|
|
|
$this->load->_model("Model_express_tt","express_tt");
|
|
|
$this->load->_model("Model_shop","shop");
|
|
|
+ $this->load->_model("Model_fullordertt","fullordertt");
|
|
|
}
|
|
|
private $ip = ['127.0.0.1','47.105.156.18'];
|
|
|
//定义方法的调用规则 获取URI第二段值
|
|
|
@@ -44,20 +45,25 @@ class QueueCbt extends Start_Controller {
|
|
|
// exit("当前店铺不存在");
|
|
|
// }
|
|
|
$list = $this->db->from("fullordertt")
|
|
|
+ ->select("id,orderinfo,shop,express,print,printnumber,library,review,state")
|
|
|
->where($where_arr)
|
|
|
->where_not_in('state',[214,217])
|
|
|
->get()->result_array();
|
|
|
if(empty($list)){
|
|
|
exit("没有符合条件的订单");
|
|
|
}
|
|
|
+
|
|
|
foreach($list as $k=>$v){
|
|
|
- $extra_text = json_encode($v['extra_text'],true);
|
|
|
+ $info = $this->fullordertt->read($v['id']);
|
|
|
+ $extra_text = json_encode($info['extra_text'],true);
|
|
|
if(isset($extra_text['label_info'])){
|
|
|
continue;
|
|
|
}
|
|
|
- if(isset($shop_list[$v['shop']])){
|
|
|
- $r = $this->express_tt->doCreateCBTLabel($v,$shop_list[$v['shop']]);
|
|
|
- var_dump($v['orderinfo']);
|
|
|
+ if(isset($shop_list[$info['shop']])){
|
|
|
+ print_r($shop_list[$info['shop']]);
|
|
|
+ print_r($info);
|
|
|
+ //$r = $this->express_tt->doCreateCBTLabel($info,$shop_list[$info['shop']]);
|
|
|
+ var_dump($info['orderinfo']);
|
|
|
var_dump(" ");
|
|
|
usleep(100);
|
|
|
}
|