Skip to content

Commit 7a4d4d4

Browse files
committed
修改了动态的跳转问题
1 parent 6762409 commit 7a4d4d4

3 files changed

Lines changed: 22 additions & 3 deletions

File tree

Coding_iOS/Controllers/ProjectMemberActivityListViewController.m

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
#import "TopicDetailViewController.h"
1313
#import "FileListViewController.h"
1414
#import "FileViewController.h"
15+
#import "MRDetailViewController.h"
1516

1617
#import "ProjectCommitsViewController.h"
1718
#import "PRDetailViewController.h"
@@ -199,7 +200,16 @@ - (void)goToVCWithItem:(HtmlMediaItem *)clickedItem activity:(ProjectActivity *)
199200
if ([proAct.line_note.noteable_type isEqualToString:@"Commit"]) {
200201
vc = [CommitFilesViewController vcWithPath:request_path];
201202
}else{
202-
vc = [PRDetailViewController vcWithPath:request_path];
203+
if([request_path rangeOfString:@"merge"].location == NSNotFound)//_roaldSearchText
204+
{
205+
vc = [PRDetailViewController vcWithPath:request_path];
206+
}
207+
else
208+
{
209+
vc = [MRDetailViewController vcWithPath:request_path];
210+
211+
}
212+
203213
}
204214
if (vc) {
205215
[self.navigationController pushViewController:vc animated:YES];

Coding_iOS/Controllers/ProjectViewController.m

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
#import "FolderToMoveViewController.h"
3030
#import "FileViewController.h"
3131
#import "ProjectCommitsViewController.h"
32+
#import "MRDetailViewController.h"
3233

3334
#import "ProjectCommitsViewController.h"
3435
#import "PRDetailViewController.h"
@@ -472,7 +473,15 @@ - (void)goToVCWithItem:(HtmlMediaItem *)clickedItem activity:(ProjectActivity *)
472473
if ([proAct.line_note.noteable_type isEqualToString:@"Commit"]) {
473474
vc = [CommitFilesViewController vcWithPath:request_path];
474475
}else{
475-
vc = [PRDetailViewController vcWithPath:request_path];
476+
if([request_path rangeOfString:@"merge"].location == NSNotFound)//_roaldSearchText
477+
{
478+
vc = [PRDetailViewController vcWithPath:request_path];
479+
}
480+
else
481+
{
482+
vc = [MRDetailViewController vcWithPath:request_path];
483+
}
484+
476485
}
477486
if (vc) {
478487
[self.navigationController pushViewController:vc animated:YES];

Coding_iOS/Controllers/RootControllers/BaseViewController.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ + (UIViewController *)analyseVCFromLinkStr:(NSString *)linkStr analyseMethod:(An
235235
}
236236
}
237237
if (!analyseVC) {
238-
if([path rangeOfString:@"qingjoin"].location !=NSNotFound)//_roaldSearchText
238+
if([path rangeOfString:@"merge"].location == NSNotFound)//_roaldSearchText
239239
{
240240
analyseVC = [PRDetailViewController vcWithPath:path];
241241
}

0 commit comments

Comments
 (0)