shish 5 年 前
コミット
574b21c984
1 ファイル変更4 行追加2 行削除
  1. 4 2
      biz/ghs/classes/GhsClass.php

+ 4 - 2
biz/ghs/classes/GhsClass.php

@@ -32,7 +32,8 @@ class GhsClass extends BaseClass
         }
         $ghsShop = ShopClass::getShopInfo($ghsShopId);
         $ghsSjId = $ghsShop['sjId'] ?? 0;
-        $name = $ghsShop['merchantName'] . ' ' . $ghsShop['shopName'];
+        $ghsDefault = $ghsShop['default'] ?? 0;
+        $name = $ghsDefault == 1 ? $ghsShop['merchantName'] : $ghsShop['merchantName'] . ' ' . $ghsShop['shopName'];
         $py = stringUtil::py($name);
         $ghShop = ShopClass::getShopInfo($hdShopId);
         $hdSjId = $ghShop['sjId'] ?? 0;
@@ -56,7 +57,8 @@ class GhsClass extends BaseClass
         ];
         $ghs = self::addGhs($data);
         $shop = ShopClass::getShopInfo($hdShopId);
-        $name = $shop['merchantName'] . ' ' . $shop['shopName'];
+        $default = $shop['default'] ?? 0;
+        $name = $default == 1 ? $shop['merchantName'] : $shop['merchantName'] . ' ' . $shop['shopName'];
         $py = stringUtil::py($name);
         $mobile = $shop['mobile'] ?? '';
         $ghsId = $ghs['id'] ?? 0;