|
@@ -42,6 +42,7 @@ class Systemfout extends Start_Controller {
|
|
|
$this->load->_model('Model_fullorderpaypal','fullorderpaypal');
|
|
|
$this->load->_model("Model_logic_ding","logic_ding");
|
|
|
$this->load->_model("Model_fedexv1",'fedexv1');
|
|
|
+ $this->load->_model("Model_zzquque_u9","zzquque_u9");
|
|
|
}
|
|
|
//定义方法的调用规则 获取URI第二段值
|
|
|
public function _remap($arg,$arg_array)
|
|
@@ -561,7 +562,7 @@ class Systemfout extends Start_Controller {
|
|
|
//所有快递必须称重 翔文除外
|
|
|
|
|
|
|
|
|
- $this->logic_ding->sendToDing("检测订单".$y['number']."称重".$numweight."快递公司".$y['express']."-".$weight."[".$numweight."]");
|
|
|
+ //$this->logic_ding->sendToDing("检测订单".$y['number']."称重".$numweight."快递公司".$y['express']."-".$weight."[".$numweight."]");
|
|
|
if(!in_array($y['express'],[2,39,43,44,45,47,48,49,55,61,63,64,65])){
|
|
|
if($weight == '' || $numweight < '0.1' || !is_numeric($numweight))
|
|
|
{
|
|
@@ -826,7 +827,16 @@ class Systemfout extends Start_Controller {
|
|
|
echo json_encode(array('msg'=>'该单共打印过'.$y['printnumber'].'次,请注意核对当前发货单是否是最新发货单!','outnumber'=>$y['id'],'post'=>$p,'fullorder_name'=>$fullorder_name,'success'=>false));exit;
|
|
|
}
|
|
|
$this->$fullorder_name->save($post,$y['id']);
|
|
|
+ //开始录入执行u9队列的数据
|
|
|
|
|
|
+ $quque_u9_list = [];
|
|
|
+ $queue_u9_list[] = [
|
|
|
+ 'platform'=>$fullorder_name,
|
|
|
+ 'warehouse'=>$y['type'],
|
|
|
+ 'type'=>10,
|
|
|
+ 'order_no'=>$y['number'],
|
|
|
+ 'status'=>0,
|
|
|
+ ];
|
|
|
//合并订单自动发货
|
|
|
$hb = $this->$fullorder_name->find_all("merge = '".$y['id']."' and id != '".$y['id']."'");
|
|
|
$post['waybill'] = $y['waybill'];
|
|
@@ -859,6 +869,16 @@ class Systemfout extends Start_Controller {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+ //添加队列的录入
|
|
|
+
|
|
|
+ $queue_u9_list[] = [
|
|
|
+ 'platform'=>$fullorder_name,
|
|
|
+ 'warehouse'=>$v['type'],
|
|
|
+ 'type'=>10,
|
|
|
+ 'order_no'=>$v['number'],
|
|
|
+ 'status'=>0,
|
|
|
+ ];
|
|
|
// $wh = $this->_fout_db($v,$warehouse,$bdck);
|
|
|
// foreach ($wh['sj'] as $vv)
|
|
|
// {
|
|
@@ -866,9 +886,14 @@ class Systemfout extends Start_Controller {
|
|
|
// }
|
|
|
//$this->ck->get_kc($post['state'],$vwarehouse,$vshop,$v['number'],$v['whlabel'],$v['fpdata']);
|
|
|
}
|
|
|
+
|
|
|
if ($this->db->trans_status() === TRUE)
|
|
|
{
|
|
|
$this->db->trans_commit();
|
|
|
+ //将要执行的队列数据添加进去
|
|
|
+ foreach($queue_u9_list as $item){
|
|
|
+ $this->zzquque_u9->insert($item);
|
|
|
+ }
|
|
|
echo json_encode(array('success'=>true));
|
|
|
}
|
|
|
else
|