|
|
@@ -94,6 +94,8 @@ class Boss extends Start_Controller
|
|
|
$this->_dycs();
|
|
|
}else if($arg =='yxdpdck'){
|
|
|
$this->_yxDPDchuku();
|
|
|
+ }else if($arg == 'yxdpdcx'){
|
|
|
+ $this->_bossyxdpdcx();
|
|
|
}else if($arg == 'spexceljs'){
|
|
|
$this->_spexceljs();
|
|
|
} else {
|
|
|
@@ -2389,4 +2391,30 @@ class Boss extends Start_Controller
|
|
|
echo json_encode(array('msg' => '已成功提交', 'success' => true));
|
|
|
exit;
|
|
|
}
|
|
|
+ public function _bossyxdpdcx(){
|
|
|
+ $params = $this->input->post(NULL, TRUE);
|
|
|
+ if(empty($params['order'])){
|
|
|
+ $params = $this->input->get(NULL, TRUE);
|
|
|
+ }
|
|
|
+ if(empty($params['order'])){
|
|
|
+ echo json_encode(array('msg' => '请填写运单号', 'success' => false));
|
|
|
+ exit;
|
|
|
+ }
|
|
|
+ $y = $this->logic_order->getInfo("waybill = '".$params['order']."'","*");
|
|
|
+ if(empty($y)){
|
|
|
+ echo json_encode(array('msg' => '请核对运单号是否正确', 'success' => false));
|
|
|
+ exit;
|
|
|
+ }
|
|
|
+ if(!in_array($y['express'],[78,79,84])){
|
|
|
+ echo json_encode(array('msg' => '非DPD快递不支持此操作', 'success' => false));
|
|
|
+ exit;
|
|
|
+ }
|
|
|
+ $res = $this->check->showOverdue($y['name'],$y['number'],$y['address']);
|
|
|
+ if($res['code'] == 1){
|
|
|
+ echo json_encode(array('msg' => $res['msg'], 'data' => [], 'success' => true));
|
|
|
+ }else{
|
|
|
+ echo json_encode(array('msg' => $res['msg'], 'data' => [], 'success' => false));
|
|
|
+ }
|
|
|
+ exit;
|
|
|
+ }
|
|
|
}
|