Commit 3e71de06 authored by admin's avatar admin

修复口碑标准

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