shish il y a 1 an
Parent
commit
0af4c8ed68
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      app-ghs/controllers/ProductController.php

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

@@ -197,12 +197,12 @@ class ProductController extends BaseController
                 //打价格
                 $price = $info->skPrice ?? 0;
                 $price = floatval($price);
-                $content .= '<TEXT x="35" y="150" font="14" w="1" h="1" r="0">' . $price . '元</TEXT>';
+                $content .= '<TEXT x="35" y="150" font="12" w="2" h="2" r="0">' . $price . '元</TEXT>';
             } else {
                 //打价码
                 $content .= '<QR x="35"  y="100"  e="L"  w="5">' . Yii::$app->params['mallHost'] . "/item/show-info?id=" . $id . '</QR>';
+                $content .= '<TEXT x="40" y="270" font="12" w="1" h="1" r="0">扫码看价格</TEXT>';
             }
-            $content .= '<TEXT x="40" y="270" font="12" w="1" h="1" r="0">扫码看价格</TEXT>';
         }
 
         $p->printLabelMsg($content);