// // NewMessage.m // LN_School // // Created by EchoShacolee on 2017/6/26. // Copyright © 2017年 Danson. All rights reserved. // #import "NewMessage.h" @interface NewMessage () @end @implementation NewMessage - (void)viewDidLoad { [super viewDidLoad]; // [self getData]; } #pragma mark 数据请求 - (void)getData{ //判断网络是否连接 if (![NetManager connectedToNetWork]) { showMsgUnconnect(); return; } NSMutableDictionary * mDic = [NSMutableDictionary new]; [mDic setValue:defUser.userDict[@"dqbh"] forKey:@"dqbh"]; [mDic setValue:defUser.userDict[@"qxbh"] forKey:@"qxbh"]; [mDic setValue:@"" forKey:@"type"]; [NetManager requestAnythingWithURL:@"getMsgs" dictionary:mDic dataArray:nil completion:^(NSDictionary *root) { // // if (!root) { // ShowMsg(@"数据请求失败,请重试"); // return; // } // if ([root[@"code"] integerValue] == 1) { // ShowMsg(root[@"msg"]); // return; // } // // _dataSurce = root[@"body"]; // // if (_dataSurce.count > 0) { // holderV.hidden = YES; // } // // [_tableView reloadData]; }]; } - (void)didReceiveMemoryWarning { [super didReceiveMemoryWarning]; // Dispose of any resources that can be recreated. } /* #pragma mark - Navigation // In a storyboard-based application, you will often want to do a little preparation before navigation - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender { // Get the new view controller using [segue destinationViewController]. // Pass the selected object to the new view controller. } */ @end