__weak typeof(self) weakSelf = self;
NSMutableArray *dataSource = [NSMutableArray array];
for (SigningContentDetailsModel *model in _myDataSource) {
[dataSource addObject:model.mj_keyValues];
}
[self showHudInView:self.view hint:@"正在加载..."];
[NetworkApiUtils getServerSaveBlock:^(BaseObject *baseObject, NSDictionary *header, NSInteger errorCode) {
__strong typeof(weakSelf) strongSelf = weakSelf;
[strongSelf hideHud];
if (baseObject.success) {
[strongSelf showHint:@"保存成功"];
}else
{
[strongSelf showHint:@"保存失败"];
}
} serverPackages:dataSource];
网友评论