添加了我的房间的入口和开启自己房间的逻辑

This commit is contained in:
fengshuo
2021-11-04 15:27:11 +08:00
parent d50b33a35f
commit 483edc88f9
9 changed files with 61 additions and 26 deletions

View File

@@ -29,9 +29,6 @@
#import "XPMineUserInfoViewController.h"
#import "XPMineRechargeViewController.h"
#import "XPWebViewController.h"
#warning todo
#import "BaseNavigationController.h"
#import "XPRoomViewController.h"
@@ -130,13 +127,9 @@
break;
case XPMineItemType_Account:
{
NSString* roomUid = [NSString stringWithFormat:@"%d", 1004587];
[XPRoomViewController openRoom:roomUid viewController:self];
return;
XPMineRechargeViewController * rechargeVC = [[XPMineRechargeViewController alloc] init];
[self.navigationController pushViewController:rechargeVC animated:YES];
}
break;
case XPMineItemType_Invite_Friend:
[self pushWebViewWIthUrl:URLWithType(kUserInviteFriendURL)];
@@ -148,7 +141,12 @@
[self.navigationController pushViewController:infoVC animated:YES];
}
break;
case XPMineItemType_My_Room:
{
NSString* roomUid = [NSString stringWithFormat:@"%ld", (long)self.userInfo.uid];
[XPRoomViewController openRoom:roomUid viewController:self];
}
break;
default:
break;
}