shish 4 zile în urmă
părinte
comite
042a6d0a1c
1 a modificat fișierele cu 2 adăugiri și 2 ștergeri
  1. 2 2
      biz-ghs/order/classes/OrderClass.php

+ 2 - 2
biz-ghs/order/classes/OrderClass.php

@@ -3182,10 +3182,10 @@ XL;
 
             // 地址超过15个字,字体大小(w和h)变小一级(由 w="2" h="2" 变为 w="1" h="1")
             $addressLen = mb_strlen($fullAddress, 'UTF-8');
-            $fontScale = $addressLen > 16 ? '1' : '2';
+            $fontScale = '2';
             $content .= '<TEXT x="290" y="30" font="12" w="' . $fontScale . '" h="' . $fontScale . '" r="90">' . $fullAddress . '</TEXT>';
             if(!empty($showAddress)){
-                $content .= '<TEXT x="230" y="30" font="12" w="1.5" h="1.5" r="90">' . $showAddress . '</TEXT>';
+                $content .= '<TEXT x="230" y="30" font="12" w="2" h="1" r="90">' . $showAddress . '</TEXT>';
             }
             $content .= '<TEXT x="160" y="30" font="12" w="2" h="2" r="90">' . $customMobile . '  ' . $itemNum . '扎</TEXT>';
             $content .= '<TEXT x="66" y="30" font="12" w="2" h="2" r="90">' . $distName . ' ' . $payDate . '</TEXT>';