|
|
@@ -223,6 +223,8 @@ class ProductController extends BaseController
|
|
|
$hyPrice = floatval($hyPrice);
|
|
|
|
|
|
$name = $info->name ?? '';
|
|
|
+ $name = preg_replace('/\s{2,}/', ' ', $name ?? '');
|
|
|
+
|
|
|
$ptItemId = $info->itemId ?? 0;
|
|
|
$mainId = $info->mainId ?? 0;
|
|
|
$ext = $this->shopExt;
|
|
|
@@ -251,7 +253,7 @@ class ProductController extends BaseController
|
|
|
}
|
|
|
} else {
|
|
|
if (stringUtil::getWordNum($name) > 8) {
|
|
|
- $content = '<TEXT x="30" y="30" font="12" w="1" h="1" r="0">' . $name . '</TEXT>';
|
|
|
+ $content = '<TEXT x="30" y="30" font="12" w="1" h="2" r="0">' . $name . '</TEXT>';
|
|
|
} else {
|
|
|
$content = '<TEXT x="30" y="30" font="12" w="2" h="2" r="0">' . $name . '</TEXT>';
|
|
|
}
|