|
@@ -864,21 +864,21 @@ class Systemprint extends Start_Controller {
|
|
{
|
|
{
|
|
$barcode = $this->usps->get_data($fullorder);
|
|
$barcode = $this->usps->get_data($fullorder);
|
|
//改新的去掉
|
|
//改新的去掉
|
|
- if(isset($barcode[0]))
|
|
|
|
- {
|
|
|
|
- $barcode = $barcode[0];
|
|
|
|
- }
|
|
|
|
- if(isset($barcode['LabelImage']) || isset($barcode[0]['LabelImage']))
|
|
|
|
|
|
+ // if(isset($barcode[0]))
|
|
|
|
+ // {
|
|
|
|
+ // $barcode = $barcode[0];
|
|
|
|
+ // }
|
|
|
|
+ //if(isset($barcode['LabelImage']) || isset($barcode[0]['LabelImage']))
|
|
//改新的去掉
|
|
//改新的去掉
|
|
- //if(isset($barcode['labelImage']))
|
|
|
|
|
|
+ if(isset($barcode['labelImage']))
|
|
{
|
|
{
|
|
$bctime = date('Ymd',$time);
|
|
$bctime = date('Ymd',$time);
|
|
- $Hwaybill = substr($barcode['BarcodeNumber'], 8); //改新的去掉 新的 Labellmage 改 labelImage
|
|
|
|
- // $Hwaybill = $barcode['trackingNumber'];
|
|
|
|
- // $Hyd = $this->_pdf($barcode['labelImage'],'y-'.$Hwaybill,$bctime);
|
|
|
|
- $Hyd = $this->_pdf($barcode['LabelImage'],'y-'.$Hwaybill,$bctime);
|
|
|
|
- if(isset($barcode['LabelImage']) && isset($Hwaybill))
|
|
|
|
- //if(isset($barcode['labelImage']) && isset($Hwaybill))
|
|
|
|
|
|
+ //$Hwaybill = substr($barcode['BarcodeNumber'], 8); //改新的去掉 新的 Labellmage 改 labelImage
|
|
|
|
+ $Hwaybill = $barcode['trackingNumber'];
|
|
|
|
+ $Hyd = $this->_pdf($barcode['labelImage'],'y-'.$Hwaybill,$bctime);
|
|
|
|
+ //$Hyd = $this->_pdf($barcode['LabelImage'],'y-'.$Hwaybill,$bctime);
|
|
|
|
+ //if(isset($barcode['LabelImage']) && isset($Hwaybill))
|
|
|
|
+ if(isset($barcode['labelImage']) && isset($Hwaybill))
|
|
{
|
|
{
|
|
if($fullorder['waybill'] != "")
|
|
if($fullorder['waybill'] != "")
|
|
{
|
|
{
|
|
@@ -900,14 +900,14 @@ class Systemprint extends Start_Controller {
|
|
|
|
|
|
else if(isset($barcode['error']))
|
|
else if(isset($barcode['error']))
|
|
{
|
|
{
|
|
- //$failed = $barcode['Description'];//错误提示
|
|
|
|
- //if(stripos($failed,'The requested Mail') === false)
|
|
|
|
- //{
|
|
|
|
- //if($failed != 'false')
|
|
|
|
- //{
|
|
|
|
|
|
+ $failed = $barcode['Description'];//错误提示
|
|
|
|
+ if(stripos($failed,'The requested Mail') === false)
|
|
|
|
+ {
|
|
|
|
+ if($failed != 'false')
|
|
|
|
+ {
|
|
$this->$fullorder_name->save(array('print'=>1,'failed'=>json_encode($barcode['error'])),$va[$n]);
|
|
$this->$fullorder_name->save(array('print'=>1,'failed'=>json_encode($barcode['error'])),$va[$n]);
|
|
- //}
|
|
|
|
- //}
|
|
|
|
|
|
+ }
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|