|
|
@@ -76,9 +76,9 @@ class PlantCgController extends BaseController
|
|
|
|
|
|
$goodsSn = $item->goodsSn ?? '';
|
|
|
$price = floatval($item->price) ?? 0;
|
|
|
- $content = '<TEXT x="30" y="30" font="12" w="2" h="2" r="0">' . $name . '</TEXT>';
|
|
|
- $content .= '<BC128 x="30" y="100" h="80" s="1" r="0" n="4" w="11">' . $goodsSn . '</BC128>';
|
|
|
- $content .= '<TEXT x="30" y="190" font="12" w="2" h="2" r="0">' . $price . '元</TEXT>';
|
|
|
+ $content = '<TEXT x="20" y="30" font="12" w="2" h="2" r="0">' . $name . '</TEXT>';
|
|
|
+ $content .= '<BC128 x="20" y="100" h="80" s="1" r="0" n="4" w="11">' . $goodsSn . '</BC128>';
|
|
|
+ $content .= '<TEXT x="20" y="220" font="12" w="2" h="2" r="0">' . $price . '元</TEXT>';
|
|
|
$p->times = $num;
|
|
|
$p->printLabelMsg($content);
|
|
|
util::complete();
|