|
|
@@ -60,11 +60,13 @@ class ProductController extends BaseController
|
|
|
|
|
|
$unit = $info->ratio . $info->smallUnit . '/' . $info->bigUnit;
|
|
|
|
|
|
+ $url = Yii::$app->params['mallHost'] . "/item/show-info?id=" . $id;
|
|
|
+
|
|
|
$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="80" s="1" r="90" n="5" w="12">' . $ptItemId . '</BC128>';
|
|
|
$content .= '<TEXT x="60" y="30" font="12" w="2" h="2" r="90">' . $unit . '</TEXT>';
|
|
|
- $content .= '<QR x="150" y="390" e="L" w="5">https://api.shop.huahb.cn/item/show-info?id='.$id.'</QR>';
|
|
|
+ $content .= '<QR x="150" y="390" e="L" w="5">' . $url . '</QR>';
|
|
|
$content .= '<TEXT x="100" y="400" font="12" w="1" h="1" r="90">扫码看价格</TEXT>';
|
|
|
$p->printLabelMsg($content);
|
|
|
util::complete();
|