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

Sign up
Appearance settings

Commit c97cb11

Browse files
「团队项目」的 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

Lines changed: 7 additions & 0 deletions
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)

AltStyle によって変換されたページ (->オリジナル) /