|
@@ -54,6 +54,7 @@ class Boss extends Start_Controller {
|
|
$this->load->_model('Model_weight','weight');
|
|
$this->load->_model('Model_weight','weight');
|
|
$this->load->_model('Model_country','country');
|
|
$this->load->_model('Model_country','country');
|
|
$this->load->_model("Model_zzquque_u9","zzquque_u9");
|
|
$this->load->_model("Model_zzquque_u9","zzquque_u9");
|
|
|
|
+ $this->load->_model("Model_customsdeclaration","customsdeclaration");
|
|
}
|
|
}
|
|
//定义方法的调用规则 获取URI第二段值
|
|
//定义方法的调用规则 获取URI第二段值
|
|
public function _remap($arg,$arg_array)
|
|
public function _remap($arg,$arg_array)
|
|
@@ -1621,7 +1622,20 @@ class Boss extends Start_Controller {
|
|
$fullorder['printcode'] = $express['printcode'];
|
|
$fullorder['printcode'] = $express['printcode'];
|
|
$fullorder['time'] = date('Y-m-d',time());
|
|
$fullorder['time'] = date('Y-m-d',time());
|
|
$fullorder['times'] = date('Y-m-d H:i',time());
|
|
$fullorder['times'] = date('Y-m-d H:i',time());
|
|
- $fullorder['sbbm']= ($fullorder['sbpm'] == 'Hair Sample') ? 67042000 : 67041100;
|
|
|
|
|
|
+ //$fullorder['sbbm']= ($fullorder['sbpm'] == 'Hair Sample') ? 67042000 : 67041100;
|
|
|
|
+
|
|
|
|
+ // 修复报关编码问题
|
|
|
|
+ $declara_info = $this->customsdeclaration->find("ename like '%".trim($fullorder['sbpm'])."%' ","*");
|
|
|
|
+
|
|
|
|
+ $sbbm = "";
|
|
|
|
+ if(empty($declara_info)){
|
|
|
|
+ $sbbm = "";
|
|
|
|
+ }else{
|
|
|
|
+ $sbbm = $declara_info['bname'];
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ $fullorder['sbbm']= $sbbm;
|
|
|
|
+
|
|
$fullorder['address'] = str_replace(array('&'),array('&'),$fullorder['address']);
|
|
$fullorder['address'] = str_replace(array('&'),array('&'),$fullorder['address']);
|
|
$fullorder['address2'] = str_replace(array('&'),array('&'),$fullorder['address2']);
|
|
$fullorder['address2'] = str_replace(array('&'),array('&'),$fullorder['address2']);
|
|
$fullorder['shipremarks'] = str_replace(array('<','>',';',';'),array('<','>',';<br>',';<br>'),$fullorder['shipremarks']);
|
|
$fullorder['shipremarks'] = str_replace(array('<','>',';',';'),array('<','>',';<br>',';<br>'),$fullorder['shipremarks']);
|