Skip to content

Commit d829d60

Browse files
committed
添加项目成员的 & 冒泡四图排版
1 parent 850f485 commit d829d60

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Coding_iOS/Util/Manager/Coding_NetAPIManager.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -1444,7 +1444,7 @@ - (void)request_ChangeWatcher:(User *)watcher ofTask:(Task *)task andBlock:(void
14441444
#pragma mark User
14451445
- (void)request_AddUser:(User *)user ToProject:(Project *)project andBlock:(void (^)(id data, NSError *error))block{
14461446
// 一次添加多个成员(逗号分隔):users=102,4 (以后只支持 gk,不支持 id 了)
1447-
[[CodingNetAPIClient sharedJsonClient] requestJsonDataWithPath:[NSString stringWithFormat:@"api/project/%ld/members/add", project.id.longValue] withParams:@{@"users" : user.global_key} withMethodType:Post andBlock:^(id data, NSError *error) {
1447+
[[CodingNetAPIClient sharedJsonClient] requestJsonDataWithPath:[NSString stringWithFormat:@"api/project/%ld/members/gk/add", project.id.longValue] withParams:@{@"users" : user.global_key} withMethodType:Post andBlock:^(id data, NSError *error) {
14481448
if (data) {
14491449
[MobClick event:kUmeng_Event_Request_ActionOfServer label:@"项目_添加成员"];
14501450

Coding_iOS/Views/Cell/TweetCell.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ - (void)setTweet:(Tweet *)tweet needTopView:(BOOL)needTopView{
263263
if (_tweet.htmlMedia.imageItems.count > 0) {
264264

265265
CGFloat mediaHeight = [TweetCell contentMediaHeightWithTweet:_tweet];
266-
CGFloat mediaWidth = _tweet.htmlMedia.imageItems.count == 4? kTweetCell_ContentWidth - [TweetMediaItemCCell ccellSizeWithObj:_tweet.htmlMedia.imageItems.firstObject].width: kTweetCell_ContentWidth;
266+
CGFloat mediaWidth = _tweet.htmlMedia.imageItems.count == 4? kTweetCell_ContentWidth - [TweetMediaItemCCell ccellSizeWithObj:_tweet.htmlMedia.imageItems.firstObject].width - 3: kTweetCell_ContentWidth;
267267
[self.mediaView setFrame:CGRectMake(kTweetCell_PadingLeft, curBottomY, mediaWidth, mediaHeight)];
268268
[self.mediaView reloadData];
269269
self.mediaView.hidden = NO;

0 commit comments

Comments
 (0)