Skip to content

Commit c97cb11

Browse files
committed
「团队项目」的 backend_project_path
1 parent eb5a3bf commit c97cb11

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Coding_iOS/Models/Project.m

+7
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,13 @@ - (instancetype)init
2020
return self;
2121
}
2222

23+
- (void)setBackend_project_path:(NSString *)backend_project_path{
24+
if ([backend_project_path hasPrefix:@"/team/"]) {
25+
backend_project_path = [backend_project_path stringByReplacingOccurrencesOfString:@"/team/" withString:@"/user/"];
26+
}
27+
_backend_project_path = backend_project_path;
28+
}
29+
2330
-(id)copyWithZone:(NSZone*)zone {
2431
Project *person = [[[self class] allocWithZone:zone] init];
2532
person.icon = [_icon copy];

0 commit comments

Comments
 (0)