Przeglądaj źródła

refactor(store): 注释掉未使用的文本配置数组

- 将未使用的 $t2 数组配置注释掉,该数组用于设置空白文本的字体样式
- 保留现有的 $t1 数组配置,继续用于显示店铺名称文本
- 清理了代码中的冗余配置项,提高代码可读性
shichen 3 miesięcy temu
rodzic
commit
fa2d6cea9b

+ 9 - 9
app/controller/api/store/product/StoreProduct.php

@@ -479,15 +479,15 @@ class StoreProduct extends BaseController
479 479
                 'Normal' => 'public/font/Alibaba-PuHuiTi-Regular.otf',
480 480
             ];
481 481
             $text = $pdata['store_name'];
482
-            $t2 = array(
483
-                'text' => '',
484
-                'left' => 400,
485
-                'top' => 1020,
486
-                'fontPath' => $filelink['Bold'],     //字体文件
487
-                'fontSize' => 24,             //字号
488
-                'fontColor' => '255,255,255',       //字体颜色
489
-                'angle' => 0,
490
-            );
482
+            // $t2 = array(
483
+            //     'text' => '',
484
+            //     'left' => 400,
485
+            //     'top' => 1020,
486
+            //     'fontPath' => $filelink['Bold'],     //字体文件
487
+            //     'fontSize' => 24,             //字号
488
+            //     'fontColor' => '255,255,255',       //字体颜色
489
+            //     'angle' => 0,
490
+            // );
491 491
             $t1 = array(
492 492
                 'text' => $text,
493 493
                 'left' => 400,