Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 03436a4

Browse filesBrowse files
committed
修复我的话题Bug
1 parent 13636c1 commit 03436a4
Copy full SHA for 03436a4

File tree

Expand file treeCollapse file tree

2 files changed

+7
-1
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

2 files changed

+7
-1
lines changed
Open diff view settings
Collapse file

‎Coding_iOS/Controllers/Topic/CSMyTopicVC.m‎

Copy file name to clipboardExpand all lines: Coding_iOS/Controllers/Topic/CSMyTopicVC.m
+6Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,12 @@ - (void)viewDidLoad {
7373
}
7474

7575
- (BOOL)isMe{
76+
77+
if(!_curUser) {
78+
79+
_curUser = [Login curLoginUser];
80+
}
81+
7682
return [_curUser.global_key isEqualToString:[Login curLoginUser].global_key];
7783
}
7884

Collapse file

‎Coding_iOS/Controllers/Topic/CSTopiclistView.m‎

Copy file name to clipboardExpand all lines: Coding_iOS/Controllers/Topic/CSTopiclistView.m
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ - (id)initWithFrame:(CGRect)frame globalKey:(NSString *)key type:(CSMyTopicsType
4343
if (self) {
4444
// Initialization code
4545
_dataList = [[NSMutableArray alloc] init];
46-
_globalKey = [key copy];
46+
_globalKey = key == nil ? [[Login curLoginUser].global_key copy] : [key copy];
4747
_type = type;
4848
_block = block;
4949
_myTableView = ({

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.