shish 1 rok temu
rodzic
commit
30a096bbdb
1 zmienionych plików z 5 dodań i 8 usunięć
  1. 5 8
      app-ghs/controllers/OrderController.php

+ 5 - 8
app-ghs/controllers/OrderController.php

@@ -2894,20 +2894,17 @@ class OrderController extends BaseController
         }
         $shortMobile = substr($customMobile, -4);
         $remark = $order->remark ?? '';
-        $shortRemark = stringUtil::subStringUtf8($remark, 5);
+        $shortRemark = stringUtil::subStringUtf8($remark, 8);
         $ext = $this->shopExt;
         $wlLabelSn = $ext->wlLabelSn ?? '';
         if (empty($wlLabelSn)) {
             util::fail('请绑定物流标签机');
         }
         $p = new printUtil($wlLabelSn);
-        $p->times = 1;
-        $content = '<TEXT x="400" y="30" font="12" w="4" h="4" r="90">中间地带的革命</TEXT>';
-        $content .= '<TEXT x="230" y="50" font="12" w="2" h="2" r="90">1350</TEXT>';
-        $content .= '<TEXT x="130" y="50" font="12" w="2" h="2" r="90">惠雅鲜花</TEXT>';
-//        $content = '<TEXT x="0" y="0" font="2" w="1" h="1" r="90">' . $shortName . '</TEXT>';
-//        $content .= '<TEXT x="30" y="115" font="2" w="1" h="1" r="90">' . $shortMobile . '</TEXT>';
-//        $content .= '<TEXT x="30" y="250" font="2" w="1" h="1" r="90">' . $shortRemark . '</TEXT>';
+        $p->times = 2;
+        $content = '<TEXT x="400" y="30" font="12" w="4" h="4" r="90">' . $shortName . '</TEXT>';
+        $content .= '<TEXT x="230" y="50" font="12" w="3" h="3" r="90">' . $shortMobile . '</TEXT>';
+        $content .= '<TEXT x="130" y="50" font="12" w="3" h="3" r="90">' . $shortRemark . '</TEXT>';
         $p->printLabelMsg($content);
         util::complete('打印成功');
     }