Skip to content

Commit eedb066

Browse files
committed
项目动态显示问题
1 parent a3212b6 commit eedb066

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

Coding_iOS/Models/ProjectActivity.m

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,16 @@ - (void)setComment_content:(NSString *)comment_content{
3131
}
3232
}
3333

34+
- (NSString *)ref_type{
35+
if ([_ref_type isEqualToString:@"tag"]) {
36+
return @"标签";
37+
}else if ([_ref_type isEqualToString:@"branch"]){
38+
return @"分支";
39+
}else{
40+
return _ref_type;
41+
}
42+
}
43+
3444
- (void)addActionUser:(User *)curUser{
3545
if (curUser) {
3646
[_actionStr appendString:@" "];
@@ -102,7 +112,7 @@ - (NSMutableString *)actionStr{
102112
[_actionStr appendString:[_type isEqualToString:@"dir"]? @"文件夹": @"文件"];
103113
}else if ([_target_type isEqualToString:@"Depot"]){
104114
if ([_action isEqualToString:@"push"]) {
105-
[_actionStr appendFormat:@"项目分支 [%@]", _ref];
115+
[_actionStr appendFormat:@"项目 %@ [%@]", self.ref_type, _ref];
106116
}else if ([_action isEqualToString:@"fork"]){
107117
[_actionStr appendFormat:@"项目 [%@] 到 [%@]", _source_depot.name, _depot.name];
108118
}

0 commit comments

Comments
 (0)