Browse Source

显示名称

shish 9 months ago
parent
commit
a0d623cf28
1 changed files with 5 additions and 1 deletions
  1. 5 1
      app-hd/controllers/MainController.php

+ 5 - 1
app-hd/controllers/MainController.php

@@ -83,8 +83,12 @@ class MainController extends BaseController
         $scene = 'a=' . $this->shopAdminId . '&s=' . $this->shopId;
         $goodsImgUrl = miniUtil::generateUnlimitedMiniCode($merchant, $goodsPage, $scene, $ptStyle);
 
+        $sjName = $shop->merchantName ?? '';
+        $shopName = $shop->shopName ?? '';
+        $name = $shopName == '首店' ? $sjName : $sjName . $shopName;
+
         $prefix = imgUtil::getPrefix();
-        $titleBase64 = stringUtil::ossBase64('绿植花束');
+        $titleBase64 = stringUtil::ossBase64($name);
 
         if ($pfShopId > 0) {
             $goodsUrl = $prefix . 'shop/miniCodeBg.jpg?x-oss-process=image';