Commit 3e71de06 authored by admin's avatar admin

修复口碑标准

parent 5ff24842
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
<BreakpointProxy <BreakpointProxy
BreakpointExtensionID = "Xcode.Breakpoint.ExceptionBreakpoint"> BreakpointExtensionID = "Xcode.Breakpoint.ExceptionBreakpoint">
<BreakpointContent <BreakpointContent
shouldBeEnabled = "Yes" shouldBeEnabled = "No"
ignoreCount = "0" ignoreCount = "0"
continueAfterRunningActions = "No" continueAfterRunningActions = "No"
scope = "0" scope = "0"
......
...@@ -10,13 +10,13 @@ ...@@ -10,13 +10,13 @@
#define Url_h #define Url_h
// url 测试环境 // url 测试环境
#define kRedStarURL @"http://218.244.151.129:7580/" // #define kRedStarURL @"http://218.244.151.129:7580/"
// 正式环境 // 正式环境
// #define kRedStarURL @"http://219.235.234.225:7580/" // #define kRedStarURL @"http://219.235.234.225:7580/"
// 最新正式环境 // 最新正式环境
// #define kRedStarURL @"http://219.235.234.212:7580/" #define kRedStarURL @"http://219.235.234.212:7580/"
// 检查更新 // 检查更新
#define kCheckUpdateURL @"redstar-server/rest/ipapk?type=ipa" #define kCheckUpdateURL @"redstar-server/rest/ipapk?type=ipa"
......
...@@ -158,6 +158,7 @@ ...@@ -158,6 +158,7 @@
- (void)queryClick:(UIButton *)sender - (void)queryClick:(UIButton *)sender
{ {
self.attachmentArray = [NSMutableArray array];
NSString *url = [NSString stringWithFormat:@"%@%@", kRedStarURL, kGetAttachmentsURL]; NSString *url = [NSString stringWithFormat:@"%@%@", kRedStarURL, kGetAttachmentsURL];
HttpClient *http = [[HttpClient alloc] initWithUrl:url]; HttpClient *http = [[HttpClient alloc] initWithUrl:url];
...@@ -166,14 +167,17 @@ ...@@ -166,14 +167,17 @@
NSDictionary *parameters = @{@"type":@"sop", NSDictionary *parameters = @{@"type":@"sop",
@"encode":encode @"encode":encode
}; };
NSLog(@"paaaaa == %@", parameters);
[http getAttachmentsWithParameters:parameters completion:^(id response, NSError *error) { [http getAttachmentsWithParameters:parameters completion:^(id response, NSError *error) {
NSArray *dataArray = response[@"data"]; NSArray *dataArray = response[@"data"];
NSLog(@"sssss === %@", response);
NSMutableArray *tempArray = [NSMutableArray array];
for (NSDictionary *attaDict in dataArray) { for (NSDictionary *attaDict in dataArray) {
AttachmentModel *atta = [[AttachmentModel alloc] init]; AttachmentModel *atta = [[AttachmentModel alloc] init];
[atta setValuesForKeysWithDictionary:attaDict]; [atta setValuesForKeysWithDictionary:attaDict];
[_attachmentArray addObject:atta]; [tempArray addObject:atta];
} }
_attachmentArray = tempArray;
if (_attachmentArray.count == 0) { if (_attachmentArray.count == 0) {
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"提示" message:@"暂无附件!" delegate:self cancelButtonTitle:nil otherButtonTitles:@"确定", nil]; UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"提示" message:@"暂无附件!" delegate:self cancelButtonTitle:nil otherButtonTitles:@"确定", nil];
...@@ -189,6 +193,11 @@ ...@@ -189,6 +193,11 @@
[_bgView addGestureRecognizer:tapGR]; [_bgView addGestureRecognizer:tapGR];
} }
CGRect toFrame = CGRectMake(0, 0, kScreenWidth - 50, tableH + 40); CGRect toFrame = CGRectMake(0, 0, kScreenWidth - 50, tableH + 40);
if (_tableView) {
[_tableView removeFromSuperview];
_tableView = nil;
}
if (!_tableView) { if (!_tableView) {
_tableView = [[UITableView alloc] initWithFrame:toFrame style:UITableViewStyleGrouped]; _tableView = [[UITableView alloc] initWithFrame:toFrame style:UITableViewStyleGrouped];
...@@ -207,11 +216,12 @@ ...@@ -207,11 +216,12 @@
[UIView animateWithDuration:0.3 animations:^{ [UIView animateWithDuration:0.3 animations:^{
_bgView.alpha = 0.6; _bgView.alpha = 0.6;
_tableView.alpha = 1.0; _tableView.alpha = 1.0;
[self.tableView reloadData];
}]; }];
}]; }];
_row = 0; // _row = 0;
} }
- (void)closeRedView - (void)closeRedView
...@@ -233,7 +243,6 @@ ...@@ -233,7 +243,6 @@
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
NSString *path = paths.lastObject; NSString *path = paths.lastObject;
NSString *url = [NSString stringWithFormat:@"%@/%@", path, atta.fileName]; NSString *url = [NSString stringWithFormat:@"%@/%@", path, atta.fileName];
NSFileManager *fileManager = [NSFileManager defaultManager]; NSFileManager *fileManager = [NSFileManager defaultManager];
if ([fileManager fileExistsAtPath:url]) { if ([fileManager fileExistsAtPath:url]) {
...@@ -290,7 +299,7 @@ ...@@ -290,7 +299,7 @@
} }
//下载附件 //下载附件
aUrl = [aUrl stringByAddingPercentEscapesUsingEncoding: NSUTF8StringEncoding]; aUrl = [aUrl stringByAddingPercentEscapesUsingEncoding: NSUTF8StringEncoding];
NSLog(@"uri ==%@", aUrl);
NSURL *url = [[NSURL alloc] initWithString:aUrl]; NSURL *url = [[NSURL alloc] initWithString:aUrl];
...@@ -527,7 +536,7 @@ ...@@ -527,7 +536,7 @@
view.tag = SELECTED_VIEW_CONTROLLER_TAG; view.tag = SELECTED_VIEW_CONTROLLER_TAG;
[self.view insertSubview:view belowSubview:_groupTabBar]; [self.view insertSubview:view belowSubview:_groupTabBar];
_row = 0;
} }
#pragma mark - lazy loading #pragma mark - lazy loading
......
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