Commit f117c3f1 authored by zhu's avatar zhu

Merge branch 'DEV_20150805_001' of http://121.42.32.57/root/xffruit into DEV_20150805_001

Conflicts:
	XFFruit/AppDelegate/ICRAppDelegate.m
parents 3e58fda4 af4a4c56
...@@ -133,6 +133,7 @@ ...@@ -133,6 +133,7 @@
alertV.tag = 1002; alertV.tag = 1002;
[alertV show]; [alertV show];
} }
}else{ }else{
...@@ -140,8 +141,8 @@ ...@@ -140,8 +141,8 @@
[self performSelector:@selector(scale_2) withObject:nil afterDelay:1.5f]; [self performSelector:@selector(scale_2) withObject:nil afterDelay:1.5f];
} }
} }
} }
-(void)scale_2 -(void)scale_2
......
...@@ -87,7 +87,9 @@ typedef enum : NSUInteger { ...@@ -87,7 +87,9 @@ typedef enum : NSUInteger {
NSString *message = data[@"message"] ; NSString *message = data[@"message"] ;
if (success == 1) { if (success == 1) {
NSString *dataStr = data[@"data"]; NSString *dataStr = data[@"data"];
NSString *urlStr = [NSString stringWithFormat:@"%@/DisplayChart?filename=%@",@"http://122.224.171.126:7280/cruiser-server",dataStr]; NSRange range = [HTTP_REST_API_BASE_URL rangeOfString:@"rest"];
NSString *serverURl = [HTTP_REST_API_BASE_URL substringToIndex:range.location];
NSString *urlStr = [NSString stringWithFormat:@"%@DisplayChart?filename=%@",serverURl,dataStr];
[_chartImageView sd_setImageWithURL:[NSURL URLWithString:urlStr]]; [_chartImageView sd_setImageWithURL:[NSURL URLWithString:urlStr]];
}else{ }else{
[IBTLoadingView showTips:message]; [IBTLoadingView showTips:message];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment