Skip to content

Commit 5fd2ed1

Browse files
committed
analyseLinkStr - 校验
1 parent 71e33e8 commit 5fd2ed1

7 files changed

Lines changed: 21 additions & 0 deletions

File tree

Coding_iOS/Controllers/ConversationViewController.m

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,9 @@ - (void)attributedLabel:(TTTAttributedLabel *)label didSelectLinkWithTransitInfo
284284
}
285285

286286
- (void)analyseLinkStr:(NSString *)linkStr{
287+
if (linkStr.length <= 0) {
288+
return;
289+
}
287290
UIViewController *vc = [BaseViewController analyseVCFromLinkStr:linkStr];
288291
if (vc) {
289292
[self.navigationController pushViewController:vc animated:YES];

Coding_iOS/Controllers/EditTaskViewController.m

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -567,6 +567,9 @@ - (void)attributedLabel:(TTTAttributedLabel *)label didSelectLinkWithTransitInfo
567567
}
568568

569569
- (void)analyseLinkStr:(NSString *)linkStr{
570+
if (linkStr.length <= 0) {
571+
return;
572+
}
570573
UIViewController *vc = [BaseViewController analyseVCFromLinkStr:linkStr];
571574
if (vc) {
572575
[self.navigationController pushViewController:vc animated:YES];

Coding_iOS/Controllers/NProjectViewController/NProjectViewController.m

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -376,6 +376,9 @@ - (void)loadRequest:(NSURLRequest *)curRequest{
376376
}
377377

378378
- (void)analyseLinkStr:(NSString *)linkStr{
379+
if (linkStr.length <= 0) {
380+
return;
381+
}
379382
UIViewController *vc = [BaseViewController analyseVCFromLinkStr:linkStr];
380383
if (vc) {
381384
[self.navigationController pushViewController:vc animated:YES];

Coding_iOS/Controllers/RootControllers/Tweet_RootViewController.m

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -415,6 +415,9 @@ - (void)goToDetailWithTweet:(Tweet *)curTweet{
415415
}
416416

417417
- (void)analyseLinkStr:(NSString *)linkStr{
418+
if (linkStr.length <= 0) {
419+
return;
420+
}
418421
UIViewController *vc = [BaseViewController analyseVCFromLinkStr:linkStr];
419422
if (vc) {
420423
[self.navigationController pushViewController:vc animated:YES];

Coding_iOS/Controllers/TopicDetailViewController.m

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -358,6 +358,9 @@ - (void)loadRequest:(NSURLRequest *)curRequest{
358358
}
359359

360360
- (void)analyseLinkStr:(NSString *)linkStr{
361+
if (linkStr.length <= 0) {
362+
return;
363+
}
361364
UIViewController *vc = [BaseViewController analyseVCFromLinkStr:linkStr];
362365
if (vc) {
363366
[self.navigationController pushViewController:vc animated:YES];

Coding_iOS/Controllers/TweetDetailViewController.m

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -421,6 +421,9 @@ - (void)loadRequest:(NSURLRequest *)curRequest{
421421
}
422422

423423
- (void)analyseLinkStr:(NSString *)linkStr{
424+
if (linkStr.length <= 0) {
425+
return;
426+
}
424427
UIViewController *vc = [BaseViewController analyseVCFromLinkStr:linkStr];
425428
if (vc) {
426429
[self.navigationController pushViewController:vc animated:YES];

Coding_iOS/Controllers/UserTweetsViewController.m

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -322,6 +322,9 @@ - (void)goToDetailWithTweet:(Tweet *)curTweet{
322322
}
323323

324324
- (void)analyseLinkStr:(NSString *)linkStr{
325+
if (linkStr.length <= 0) {
326+
return;
327+
}
325328
UIViewController *vc = [BaseViewController analyseVCFromLinkStr:linkStr];
326329
if (vc) {
327330
[self.navigationController pushViewController:vc animated:YES];

0 commit comments

Comments
 (0)