Browse Source

修改cbt和fbt的打印模板缩放比例

lvhao 4 ngày trước cách đây
mục cha
commit
cc5c0f61a1
1 tập tin đã thay đổi với 3 bổ sung1 xóa
  1. 3 1
      core/CoreApp/controllers/Systemprint.php

+ 3 - 1
core/CoreApp/controllers/Systemprint.php

@@ -1761,12 +1761,14 @@ class Systemprint extends Start_Controller {
 						$this->$fullorder_name->save(array('print'=>1,'failed'=>$failed),$va[$n]);
 					}
 				}elseif(($fullorder['printcode'] == "TTUK") || ($fullorder['printcode'] == "TTUS")){
+					$pdf_width_model = 85;
 					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));
+						$pdf_width_model = 90;
 					}else{
 						$barcode = [
 							'x'=>0,
@@ -1796,7 +1798,7 @@ class Systemprint extends Start_Controller {
 				   		 	{
 								$type = 1;
 								$pdfnum = 1;
-								$text = array('yd'=>base_url().'data/pdf/'.$bctime.'/y-'.$Hwaybill.'.pdf','mode'=>85);
+								$text = array('yd'=>base_url().'data/pdf/'.$bctime.'/y-'.$Hwaybill.'.pdf','mode'=>$pdf_width_model);
 							}
 						}
 					}