|
|
@@ -1760,9 +1760,20 @@ class Systemprint extends Start_Controller {
|
|
|
$failed = $barcode['Description'];//错误提示
|
|
|
$this->$fullorder_name->save(array('print'=>1,'failed'=>$failed),$va[$n]);
|
|
|
}
|
|
|
- }elseif(($fullorder['printcode'] == "TTUK")){
|
|
|
- $barcode = $this->express_tt->get_data($fullorder,"FBT");
|
|
|
- $this->logic_ding->sendToDing("TTUK获取快递面单".json_encode($barcode));
|
|
|
+ }elseif(($fullorder['printcode'] == "TTUK") || ($fullorder['printcode'] == "TTUS")){
|
|
|
+ if($fullorder['printcode'] == "TTUK"){
|
|
|
+ $barcode = $this->express_tt->get_data($fullorder,"FBT");
|
|
|
+ $this->logic_ding->sendToDing("TTUK获取快递面单".json_encode($barcode));
|
|
|
+ }elseif($fullorder['printcode'] == "TTUS"){
|
|
|
+ $barcode = $this->express_tt->get_data($fullorder,"CBT");
|
|
|
+ $this->logic_ding->sendToDing("TTUS获取快递面单".json_encode($barcode));
|
|
|
+ }else{
|
|
|
+ $barcode = [
|
|
|
+ 'x'=>0,
|
|
|
+ 'Description'=>"未找到此快递运单接口"
|
|
|
+ ];
|
|
|
+ }
|
|
|
+
|
|
|
if($barcode['x'] == 1)
|
|
|
{
|
|
|
$bctime = date('Ymd',$time);
|