Skip to content

Commit

Permalink
update demo
Browse files Browse the repository at this point in the history
  • Loading branch information
lijun committed Jan 18, 2019
1 parent 55f3779 commit abd9ac1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion RexxarDemo/ContainerAPI/RXRLogContainerAPI.m
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ - (NSData *)responseData
return jsonData;
}

- (void)performWithRequest:(NSURLRequest *)request
- (void)performWithRequest:(NSURLRequest *)request completion:(void (^)())completion
{
NSData *data = request.HTTPBody;
NSString *encodeStr = [[NSString alloc] initWithData:data encoding:NSASCIIStringEncoding];
Expand All @@ -59,6 +59,10 @@ - (void)performWithRequest:(NSURLRequest *)request
NSLog(@"Log event:%@, label:%@", [form rxr_itemForKey:@"event"], [form rxr_itemForKey:@"label"]);
}
}

if (completion) {
completion();
}
}

@end

0 comments on commit abd9ac1

Please sign in to comment.