Browse Source

门店详情 与 门店 和 客户

shish 1 năm trước cách đây
mục cha
commit
b60b684904
1 tập tin đã thay đổi với 9 bổ sung1 xóa
  1. 9 1
      app-mall/controllers/ShopController.php

+ 9 - 1
app-mall/controllers/ShopController.php

@@ -2,6 +2,7 @@
 
 namespace mall\controllers;
 
+use bizHd\custom\classes\CustomClass;
 use bizHd\shop\classes\ShopClass;
 use bizMall\ad\services\AdService;
 use bizMall\goods\services\CategoryService;
@@ -34,7 +35,14 @@ class ShopController extends BaseController
         $avatar = imgUtil::groupImg($shortAvatar). "?x-oss-process=image/resize,m_fill,h_300,w_300";
         $info['avatar'] = $avatar;
         $info['shortAvatar'] = $shortAvatar;
-        util::success(['info' => $info]);
+
+        $user = $this->user;
+        $shop = $this->shop;
+        $respond = CustomClass::buildRelation($shop, $user);
+        $hd = $respond['hd'];
+        $custom = $respond['custom'];
+
+        util::success(['info' => $info, 'hd' => $hd, 'custom' => $custom]);
     }
 
     //获取商家的默认门店 ssh 2019.12.6