diff --git a/app/Service/v3/Implementations/UserCenterBlockService.php b/app/Service/v3/Implementations/UserCenterBlockService.php index 72c8675..55433ca 100644 --- a/app/Service/v3/Implementations/UserCenterBlockService.php +++ b/app/Service/v3/Implementations/UserCenterBlockService.php @@ -43,18 +43,26 @@ class UserCenterBlockService implements UserCenterBlockServiceInterface ] ]; + $blocks[] = [ + 'type' => 'store_user', + 'title' => '商户相关', + 'items' => [ + ['name' => '商家入口', 'icon' => $img_host . 'user_icons/shop_enter.png', 'type' => 'page', 'path' => '/pages/shopLogin/shopLogin','command'=>'store_login'] + ] + ]; + foreach ($roles as $key => $item) { # code... - if($item['key'] == 'store'){ - $blocks[] = [ - 'type' => 'store_user', - 'title' => '商户相关', - 'items' => [ - ['name' => '商家入口', 'icon' => $img_host . 'user_icons/shop_enter.png', 'type' => 'page', 'path' => '/pages/shopLogin/shopLogin','command'=>'store_login'] - ] - ]; - } + // if($item['key'] == 'store'){ + // $blocks[] = [ + // 'type' => 'store_user', + // 'title' => '商户相关', + // 'items' => [ + // ['name' => '商家入口', 'icon' => $img_host . 'user_icons/shop_enter.png', 'type' => 'page', 'path' => '/pages/shopLogin/shopLogin','command'=>'store_login'] + // ] + // ]; + // } if($item['key'] == 'sp'){ $blocks[] = [