Compare commits
2 Commits
c4e177dd7e
...
15ac93c737
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
15ac93c737 | ||
|
|
12d053e032 |
@ -300,10 +300,12 @@ class _MePage2State extends State<MePage2> {
|
||||
Widget _buildMenuCard2() {
|
||||
final userProfile = context.watch<SocialChatUserProfileManager>();
|
||||
final items = <_MenuRowData>[];
|
||||
final hasCurrentUser = userProfile.currentUserProfile != null;
|
||||
final isAgent = userProfile.userIdentity?.agent ?? false;
|
||||
|
||||
// 1. 主播相关
|
||||
if (userProfile.userIdentity?.anchor ?? false) {
|
||||
if (userProfile.userIdentity?.agent ?? false) {
|
||||
// 1. 主播/代理入口
|
||||
if (hasCurrentUser) {
|
||||
if (isAgent) {
|
||||
items.add(
|
||||
_MenuRowData(
|
||||
title: SCAppLocalizations.of(context)!.agentCenter,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user