shish 3 vuotta sitten
vanhempi
commit
dea51e2891
1 muutettua tiedostoa jossa 4 lisäystä ja 4 poistoa
  1. 4 4
      app-ghs/controllers/ProductController.php

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

@@ -112,12 +112,12 @@ class ProductController extends BaseController
         $unit = $info->ratio . $info->smallUnit . '/' . $info->bigUnit;
 
         $p->times = $num;
-        $content = '<TEXT x="360" y="30" font="12" w="2" h="2" r="90">' . $name . '</TEXT>';
-        $content .= '<BC128 x="260" y="30" h="70" s="1" r="90" n="4" w="11">' . $ptItemId . '</BC128>';
+        $content = '<TEXT x="30" y="45" font="12" w="2" h="2" r="90">' . $name . '</TEXT>';
+        $content .= '<BC128 x="30" y="115" h="70" s="1" r="90" n="4" w="11">' . $ptItemId . '</BC128>';
         if (in_array($mainId, [52, 1459])) {
-            $content .= '<TEXT x="80" y="30" font="12" w="2" h="2" r="90">惠雅鲜花</TEXT>';
+            $content .= '<TEXT x="30" y="250" font="12" w="2" h="2" r="90">惠雅鲜花</TEXT>';
         } else {
-            $content .= '<TEXT x="80" y="30" font="12" w="2" h="2" r="90">' . $unit . '</TEXT>';
+            $content .= '<TEXT x="30" y="250" font="12" w="2" h="2" r="90">' . $unit . '</TEXT>';
         }
 
         //$content .= '<QR x="30"  y="390"  e="L"  w="5">' . Yii::$app->params['mallHost'] . "/item/show-info?id=" . $id . '</QR>';