Skip to content

Commit eb6534e

Browse files
wanghenghengEase
authored and
Ease
committed
Depot 类型需要特殊处理下
1 parent 24669b4 commit eb6534e

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

Coding_iOS.xcodeproj/project.pbxproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@
147147
4E4972DC1BB52A8300F3AC15 /* tipIcon_TweetComment@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 4E4972DB1BB52A8300F3AC15 /* tipIcon_TweetComment@2x.png */; settings = {ASSET_TAGS = (); }; };
148148
4E4972DF1BB535B400F3AC15 /* tipIcon_ProjectTweet@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 4E4972DD1BB535B400F3AC15 /* tipIcon_ProjectTweet@2x.png */; settings = {ASSET_TAGS = (); }; };
149149
4E4972E01BB535B400F3AC15 /* tipIcon_ProjectTweetComment@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 4E4972DE1BB535B400F3AC15 /* tipIcon_ProjectTweetComment@2x.png */; settings = {ASSET_TAGS = (); }; };
150+
4E4972E21BB5395B00F3AC15 /* tipIcon_CommitLineNote@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 4E4972E11BB5395B00F3AC15 /* tipIcon_CommitLineNote@2x.png */; settings = {ASSET_TAGS = (); }; };
150151
4E4ABBEA1A653027004760D9 /* WebViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 4E4ABBE91A653027004760D9 /* WebViewController.m */; };
151152
4E4D6A581B1C5DC000FD2E49 /* MRPRCommentCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 4E4D6A571B1C5DC000FD2E49 /* MRPRCommentCell.m */; };
152153
4E4D6A5B1B1C5DDF00FD2E49 /* MRPRCommentCCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 4E4D6A5A1B1C5DDF00FD2E49 /* MRPRCommentCCell.m */; };
@@ -1119,6 +1120,7 @@
11191120
4E4972DB1BB52A8300F3AC15 /* tipIcon_TweetComment@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "tipIcon_TweetComment@2x.png"; sourceTree = "<group>"; };
11201121
4E4972DD1BB535B400F3AC15 /* tipIcon_ProjectTweet@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "tipIcon_ProjectTweet@2x.png"; sourceTree = "<group>"; };
11211122
4E4972DE1BB535B400F3AC15 /* tipIcon_ProjectTweetComment@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "tipIcon_ProjectTweetComment@2x.png"; sourceTree = "<group>"; };
1123+
4E4972E11BB5395B00F3AC15 /* tipIcon_CommitLineNote@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "tipIcon_CommitLineNote@2x.png"; sourceTree = "<group>"; };
11221124
4E4ABBE81A653027004760D9 /* WebViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = WebViewController.h; sourceTree = "<group>"; };
11231125
4E4ABBE91A653027004760D9 /* WebViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = WebViewController.m; sourceTree = "<group>"; };
11241126
4E4D6A561B1C5DC000FD2E49 /* MRPRCommentCell.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MRPRCommentCell.h; sourceTree = "<group>"; };
@@ -4104,6 +4106,7 @@
41044106
4E4972DB1BB52A8300F3AC15 /* tipIcon_TweetComment@2x.png */,
41054107
4E4972DD1BB535B400F3AC15 /* tipIcon_ProjectTweet@2x.png */,
41064108
4E4972DE1BB535B400F3AC15 /* tipIcon_ProjectTweetComment@2x.png */,
4109+
4E4972E11BB5395B00F3AC15 /* tipIcon_CommitLineNote@2x.png */,
41074110
);
41084111
path = tip_icons;
41094112
sourceTree = "<group>";
@@ -5092,6 +5095,7 @@
50925095
4E6383EA1B32791600D98648 /* checkbox_unchecked@2x.png in Resources */,
50935096
8EA6D19119E240C40076D59C /* timeline_icon_read@2x.png in Resources */,
50945097
8E97CEB21A0C7E26006F9AD7 /* coding_emoji_27@2x.png in Resources */,
5098+
4E4972E21BB5395B00F3AC15 /* tipIcon_CommitLineNote@2x.png in Resources */,
50955099
8E97CEAF1A0C7E26006F9AD7 /* coding_emoji_24@2x.png in Resources */,
50965100
8E97CEA11A0C7E26006F9AD7 /* coding_emoji_10@2x.png in Resources */,
50975101
8E97CEB81A0C7E26006F9AD7 /* coding_emoji_33@2x.png in Resources */,
Loading

Coding_iOS/Models/CodingTip.m

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
//
88

99
#import "CodingTip.h"
10+
#import "Login.h"
1011

1112
@implementation CodingTip
1213

@@ -29,7 +30,9 @@ - (void)setTarget_type:(NSString *)target_type{
2930

3031
- (void)adjust{
3132
//根据 content、target_type 去重组数据
32-
if (_htmlMedia.mediaItems.count > 0) {
33+
if ([_target_type isEqualToString:@"Depot"]) {//您导入的仓库(xxx)成功。点击查看:<a>playmore</a>
34+
_user_item = [HtmlMediaItem htmlMediaItemWithTypeATUser:[Login curLoginUser] mediaRange:NSMakeRange(0, 0)];
35+
}else if (_htmlMedia.mediaItems.count > 0) {
3336
_user_item = [_htmlMedia.mediaItems firstObject];
3437
[_htmlMedia removeItem:_user_item];
3538
}

0 commit comments

Comments
 (0)