shish 3 anni fa
parent
commit
cc2491530b
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  1. 2 1
      app-ghs/controllers/ProductController.php

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

@@ -64,7 +64,8 @@ class ProductController extends BaseController
         $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="130"  y="390"  e="L"  w="5">https://api.shop.huahb.cn/item/detail?id=1</QR>';
+        $content .= '<QR x="160"  y="390"  e="L"  w="5">https://api.shop.huahb.cn/item/show-info?id='.$id.'</QR>';
+        $content .= '<TEXT x="360" y="390" font="12" w="2" h="2" r="90">扫码看价格</TEXT>';
         $p->printLabelMsg($content);
         util::complete();
     }