shish há 7 meses atrás
pai
commit
970e4fd721

+ 1 - 1
app-ghs/controllers/ProductController.php

@@ -193,7 +193,7 @@ class ProductController extends BaseController
             $unit = '若干' . $info->smallUnit . '装';
         }
         $p->times = $num;
-        if (stringUtil::getWordNum($name) > 14) {
+        if (stringUtil::getWordNum($name) > 8) {
             $content = '<TEXT x="30" y="30" font="12" w="1" h="1" r="0">' . $name . '</TEXT>';
         } else {
             $content = '<TEXT x="30" y="30" font="12" w="2" h="2" r="0">' . $name . '</TEXT>';

+ 1 - 1
app-ghs/controllers/PurchaseOrderController.php

@@ -223,7 +223,7 @@ class PurchaseOrderController extends BaseController
             $price = $infoList[$productId] && $infoList[$productId]['skPrice'] ? $infoList[$productId]['skPrice'] : 0;
             $price = floatval($price);
 
-            if (stringUtil::getWordNum($name) > 14) {
+            if (stringUtil::getWordNum($name) > 8) {
                 $content = '<TEXT x="30" y="30" font="12" w="1" h="1" r="0">' . $name . '</TEXT>';
             } else {
                 $content = '<TEXT x="30" y="30" font="12" w="2" h="2" r="0">' . $name . '</TEXT>';