Compare commits
No commits in common. "15ac93c737804da0cda11c83b2cee342542a75a3" and "c4e177dd7e80311d42acf3aae4b1fb36f66e3d52" have entirely different histories.
15ac93c737
...
c4e177dd7e
@ -300,12 +300,10 @@ 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 (hasCurrentUser) {
|
||||
if (isAgent) {
|
||||
// 1. 主播相关
|
||||
if (userProfile.userIdentity?.anchor ?? false) {
|
||||
if (userProfile.userIdentity?.agent ?? false) {
|
||||
items.add(
|
||||
_MenuRowData(
|
||||
title: SCAppLocalizations.of(context)!.agentCenter,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user