shish 3 年 前
コミット
8bfd6d2e6b
1 ファイル変更4 行追加0 行削除
  1. 4 0
      biz/ghs/classes/GhsClass.php

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

@@ -46,6 +46,7 @@ class GhsClass extends BaseClass
         $ghsShop = ShopClass::getShopInfo($ghsShopId);
         $ghsSjId = $ghsShop['sjId'] ?? 0;
         $ghsMainId = $ghsShop['mainId'] ?? 0;
+        $ghsAvatar = $ghsShop['avatar']??'';
         $ghsDefault = $ghsShop['default'] ?? 0;
         $name = $ghsDefault == 1 ? $ghsShop['merchantName'] : $ghsShop['merchantName'] . ' ' . $ghsShop['shopName'];
         $py = stringUtil::py($name);
@@ -62,6 +63,7 @@ class GhsClass extends BaseClass
             'ownMainId' => $hdMainId,
             'name' => $name,
             'py' => $py,
+            'avatar'=>$ghsAvatar,
             'mobile' => $ghsShop['mobile'] ?? '',
             'province' => $ghsShop['province'] ?? '',
             'city' => $ghsShop['city'] ?? '',
@@ -75,6 +77,7 @@ class GhsClass extends BaseClass
         $ghs = self::addGhs($data);
         $ghsId = $ghs['id'] ?? 0;
         $shop = ShopClass::getShopInfo($hdShopId);
+		$hdAvatar = $shop['avatar']??'';
         $default = $shop['default'] ?? 0;
         $name = $default == 1 ? $shop['merchantName'] : $shop['merchantName'] . ' ' . $shop['shopName'];
 
@@ -105,6 +108,7 @@ class GhsClass extends BaseClass
             'name' => $firstName,
             'originName' => $secondName,
             'py' => $py,
+			'avatar'=>$hdAvatar,
             'mobile' => $mobile,
             'province' => $shop['province'] ?? '',
             'city' => $shop['city'] ?? '',