|
@@ -80,6 +80,7 @@ class Ac extends Start_Controller {
|
|
|
$this->load->_model('Model_yuntu','yuntu');
|
|
|
$this->load->_model('Model_fedex_ficp','fedex_ficp');
|
|
|
$this->load->_model('Model_fedexv1','fedexv1');
|
|
|
+ $this->load->_model("Model_customsdeclaration","customsdeclaration");
|
|
|
}
|
|
|
//定义方法的调用规则 获取URI第二段值
|
|
|
public function _remap($arg,$arg_array)
|
|
@@ -166,6 +167,13 @@ class Ac extends Start_Controller {
|
|
|
$fullorder['printcode'] = $express['printcode'];
|
|
|
$fullorder['time'] = date('Y-m-d',time());
|
|
|
$fullorder['times'] = date('Y-m-d H:i',time());
|
|
|
+ $declara_info = $this->customsdeclaration->find("ename like %".$fullorder['sbpm']."%","*");
|
|
|
+ $sbbm = "";
|
|
|
+ if(empty($declara_info)){
|
|
|
+ $sbbm = $declara_info['bname'];
|
|
|
+ }else{
|
|
|
+ $sbbm = "67041100";
|
|
|
+ }
|
|
|
$fullorder['sbbm']= ($fullorder['sbpm'] == 'Hair Sample') ? 67042000 : 67041100;
|
|
|
$fullorder['address'] = str_replace(array('&'),array('&'),$fullorder['address']);
|
|
|
$fullorder['address2'] = str_replace(array('&'),array('&'),$fullorder['address2']);
|
|
@@ -198,6 +206,8 @@ class Ac extends Start_Controller {
|
|
|
}
|
|
|
$fullorder['pt'] = $pt;
|
|
|
$fullorder['printnumber'] += 2;
|
|
|
+ var_dump($fullorder);
|
|
|
+ die;
|
|
|
//$fullorder['printcode'] = 'HUALEIXW-FEDEX';
|
|
|
//$fullorder['sbbm']= ($fullorder['sbpm'] == 'Hair Sample') ? 67042000 : 67041100;
|
|
|
//$fullorder['sbbm']= 4202320000;//($fullorder['sbpm'] == 'Hair Sample') ? 67042000 : 67041100;
|
|
@@ -222,6 +232,7 @@ class Ac extends Start_Controller {
|
|
|
$fullorder['qm'] = 1;
|
|
|
// $fullorder['printcode'] = 'usps_priority';
|
|
|
// $b = $this->cne->get_data($fullorder);
|
|
|
+
|
|
|
echo "<pre>";
|
|
|
$b = $this->fedexv1->get_data($fullorder);
|
|
|
var_dump($b);
|