Commit 20a9e74c authored by 曹云霄's avatar 曹云霄

优化代码

parent 1cb9debf
......@@ -116,7 +116,7 @@
{
[XBLoadingView showHUDViewWithDefault];
WS(weakSelf);
[[NetworkRequestClassManager manager] networkRequestWithURL:SERVERREQUESTURL(GETSHOPPERSCONSUMER) withRequestType:ZERO withParameter:condition withReturnValueBlock:^(id returnValue) {
[HTTP networkRequestWithURL:SERVERREQUESTURL(GETSHOPPERSCONSUMER) withRequestType:ZERO withParameter:condition withReturnValueBlock:^(id returnValue) {
weakSelf.allCustomerTableview.emptyDataSetSource = weakSelf;
weakSelf.allCustomerTableview.emptyDataSetDelegate = weakSelf;
......
......@@ -177,7 +177,7 @@
{
WS(weakSelf);
[XBLoadingView showHUDViewWithDefault];
[[NetworkRequestClassManager manager] networkRequestWithURL:SERVERREQUESTURL(AFFICHELIST) withRequestType:ZERO withParameter:self.afficheModel withReturnValueBlock:^(id returnValue) {
[HTTP networkRequestWithURL:SERVERREQUESTURL(AFFICHELIST) withRequestType:ZERO withParameter:self.afficheModel withReturnValueBlock:^(id returnValue) {
[XBLoadingView hideHUDViewWithDefault];
[weakSelf endRefreshingForTableView:weakSelf.announcementTableView];
......
......@@ -101,7 +101,7 @@
{
WS(weakSelf);
[XBLoadingView showHUDViewWithDefault];;
[[NetworkRequestClassManager manager] networkWithDictionaryRequestWithURL:[NSString stringWithFormat:SERVERREQUESTURL(AFFICHEdETAILS),self.announcementEntity.fid] withRequestType:ONE withParameter:nil withReturnValueBlock:^(id returnValue) {
[HTTP networkWithDictionaryRequestWithURL:[NSString stringWithFormat:SERVERREQUESTURL(AFFICHEdETAILS),self.announcementEntity.fid] withRequestType:ONE withParameter:nil withReturnValueBlock:^(id returnValue) {
[XBLoadingView hideHUDViewWithDefault];
if (RESULT(returnValue)) {
......@@ -129,7 +129,7 @@
WS(weakSelf);
NSString *url = [NSString stringWithFormat:SERVERREQUESTURL(READANNOUNCEMENT),self.announcementEntity.fid,[Shoppersmanager manager].Shoppers.employee.departid,[Shoppersmanager manager].Shoppers.employee.fid,[[NSDate date] httpParameterString]];
url = [url stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSet characterSetWithCharactersInString:@"`#%^{}\"[]|\\<> "].invertedSet];
[[NetworkRequestClassManager manager] networkWithDictionaryRequestWithURL:url withRequestType:ZERO withParameter:nil withReturnValueBlock:^(id returnValue) {
[HTTP networkWithDictionaryRequestWithURL:url withRequestType:ZERO withParameter:nil withReturnValueBlock:^(id returnValue) {
if (RESULT(returnValue)) {
if (weakSelf.readBlock) {
......
......@@ -133,7 +133,7 @@
WS(weakSelf);
[XBLoadingView showHUDViewWithDefault];
NSLog(@"%@",[[self.prizeBill toDictionary] JSONString]);
[[NetworkRequestClassManager manager] networkRequestWithURL:SERVERREQUESTURL(SAVEPRIZEBILL) withRequestType:ZERO withParameter:self.prizeBill withReturnValueBlock:^(id returnValue) {
[HTTP networkRequestWithURL:SERVERREQUESTURL(SAVEPRIZEBILL) withRequestType:ZERO withParameter:self.prizeBill withReturnValueBlock:^(id returnValue) {
[XBLoadingView hideHUDViewWithDefault];
if (RESULT(returnValue)) {
......
......@@ -91,7 +91,7 @@
NSString *type = [MyBankClass returnBankName:entity.bankAccount];
WS(weakSelf);
[XBLoadingView showHUDViewWithDefault];
[[NetworkRequestClassManager manager] networkRequestWithURL:SERVERREQUESTURL(VALIDATION) withRequestType:ZERO withParameter:entity withReturnValueBlock:^(id returnValue) {
[HTTP networkRequestWithURL:SERVERREQUESTURL(VALIDATION) withRequestType:ZERO withParameter:entity withReturnValueBlock:^(id returnValue) {
[XBLoadingView hideHUDViewWithDefault];
if (RESULT(returnValue)) {
......
......@@ -36,7 +36,7 @@
[XBLoadingView showHUDViewWithDefault];
//发送验证码
NSString *urlString = [NSString stringWithFormat:SERVERREQUESTURL(SENDSMSBANK),self.bankEntity.phoneNumber,[Shoppersmanager manager].Shoppers.employee.userName];
[[NetworkRequestClassManager manager] networkWithDictionaryRequestWithURL:[self returnUrlString:urlString] withRequestType:ONE withParameter:nil withReturnValueBlock:^(id returnValue) {
[HTTP networkWithDictionaryRequestWithURL:[self returnUrlString:urlString] withRequestType:ONE withParameter:nil withReturnValueBlock:^(id returnValue) {
[XBLoadingView hideHUDViewWithDefault];
if (RESULT(returnValue)) {
[XBLoadingView showHUDViewWithSuccessText:@"发送成功" completeBlock:^{
......@@ -76,7 +76,7 @@
entity.smsCode = self.verificationCodeTextField.text;
entity.bankCardType = self.bankType;
WS(weakSelf);
[[NetworkRequestClassManager manager] networkRequestWithURL:SERVERREQUESTURL(BINDING) withRequestType:ZERO withParameter:entity withReturnValueBlock:^(id returnValue) {
[HTTP networkRequestWithURL:SERVERREQUESTURL(BINDING) withRequestType:ZERO withParameter:entity withReturnValueBlock:^(id returnValue) {
if (RESULT(returnValue)) {
[XBLoadingView showHUDViewWithSuccessText:@"绑定成功" completeBlock:^{
......
......@@ -98,7 +98,7 @@
{
WS(weakSelf);
[XBLoadingView showHUDViewWithDefault];
[[NetworkRequestClassManager manager] networkRequestWithURL:SERVERREQUESTURL(CARDINFORMATION) withRequestType:ZERO withParameter:self.requestModel withReturnValueBlock:^(id returnValue) {
[HTTP networkRequestWithURL:SERVERREQUESTURL(CARDINFORMATION) withRequestType:ZERO withParameter:self.requestModel withReturnValueBlock:^(id returnValue) {
[XBLoadingView hideHUDViewWithDefault];
weakSelf.beenUseCardCollectionView.emptyDataSetSource = self;
......@@ -127,7 +127,7 @@
{
WS(weakSelf);
[XBLoadingView showHUDViewWithDefault];
[[NetworkRequestClassManager manager] networkWithDictionaryRequestWithURL:[NSString stringWithFormat:SERVERREQUESTURL(USEJDECARD),JDECardNumber] withRequestType:ZERO withParameter:nil withReturnValueBlock:^(id returnValue) {
[HTTP networkWithDictionaryRequestWithURL:[NSString stringWithFormat:SERVERREQUESTURL(USEJDECARD),JDECardNumber] withRequestType:ZERO withParameter:nil withReturnValueBlock:^(id returnValue) {
[XBLoadingView hideHUDViewWithDefault];
if (RESULT(returnValue)) {
......
......@@ -116,7 +116,7 @@
WS(weakSelf);
[XBLoadingView showHUDViewWithDefault];
NSLog(@"%@",[self.requestModel toDictionary]);
[[NetworkRequestClassManager manager] networkRequestWithURL:SERVERREQUESTURL(CARDINFORMATION) withRequestType:ZERO withParameter:self.requestModel withReturnValueBlock:^(id returnValue) {
[HTTP networkRequestWithURL:SERVERREQUESTURL(CARDINFORMATION) withRequestType:ZERO withParameter:self.requestModel withReturnValueBlock:^(id returnValue) {
[XBLoadingView hideHUDViewWithDefault];
weakSelf.dontUseCardCollectionView.emptyDataSetSource = weakSelf;
......@@ -241,7 +241,7 @@
WS(weakSelf);
NSData *data = UIImageJPEGRepresentation(image, 0.5);
XBLoadingView *progressView = [XBLoadingView showHUDViewProgressLabel:@"上传小票中"];
[[NetworkRequestClassManager manager] uploadImageWithURL:SERVERREQUESTURL(UPLOADHEADER) withRequestType:ONE withImageDatas:data withParameter:nil withReturnValueBlock:^(id returnValue) {
[HTTP uploadImageWithURL:SERVERREQUESTURL(UPLOADHEADER) withRequestType:ONE withImageDatas:data withParameter:nil withReturnValueBlock:^(id returnValue) {
if (RESULT(returnValue)) {
[weakSelf activationJDECard:returnValue[@"data"]];
......@@ -270,7 +270,7 @@
{
WS(weakSelf);
[XBLoadingView showHUDViewWithDefault];
[[NetworkRequestClassManager manager] networkWithDictionaryRequestWithURL:[NSString stringWithFormat:SERVERREQUESTURL(ACTIVIATIONJDECARD),self.orderNumber,imagePath] withRequestType:ZERO withParameter:nil withReturnValueBlock:^(id returnValue) {
[HTTP networkWithDictionaryRequestWithURL:[NSString stringWithFormat:SERVERREQUESTURL(ACTIVIATIONJDECARD),self.orderNumber,imagePath] withRequestType:ZERO withParameter:nil withReturnValueBlock:^(id returnValue) {
[XBLoadingView hideHUDViewWithDefault];
if (RESULT(returnValue)) {
......
......@@ -62,7 +62,7 @@
{
WS(weakSelf);
[XBLoadingView showHUDViewWithDefaultWithView:self.view];
[[NetworkRequestClassManager manager] networkRequestWithURL:SERVERREQUESTURL(QUERYALLJDECARD) withRequestType:ZERO withParameter:self.requestModel withReturnValueBlock:^(id returnValue) {
[HTTP networkRequestWithURL:SERVERREQUESTURL(QUERYALLJDECARD) withRequestType:ZERO withParameter:self.requestModel withReturnValueBlock:^(id returnValue) {
weakSelf.cardCollectionView.emptyDataSetSource = weakSelf;
weakSelf.cardCollectionView.emptyDataSetDelegate = weakSelf;
......@@ -92,7 +92,7 @@
{
WS(weakSelf);
[XBLoadingView showHUDViewWithDefaultWithView:self.view];
[[NetworkRequestClassManager manager] networkWithDictionaryRequestWithURL:[NSString stringWithFormat:SERVERREQUESTURL(USEJDECARD),JDECardNumber] withRequestType:ZERO withParameter:nil withReturnValueBlock:^(id returnValue) {
[HTTP networkWithDictionaryRequestWithURL:[NSString stringWithFormat:SERVERREQUESTURL(USEJDECARD),JDECardNumber] withRequestType:ZERO withParameter:nil withReturnValueBlock:^(id returnValue) {
[XBLoadingView hideHUDViewWithDefaultWithView:weakSelf.view];
if (RESULT(returnValue)) {
......
......@@ -80,7 +80,7 @@
//修改密码
WS(weakSelf);
[[NetworkRequestClassManager manager] networkRequestWithURL:SERVERREQUESTURL(MODIFYPASSWORD) withRequestType:ZERO withParameter:modify withReturnValueBlock:^(id returnValue) {
[HTTP networkRequestWithURL:SERVERREQUESTURL(MODIFYPASSWORD) withRequestType:ZERO withParameter:modify withReturnValueBlock:^(id returnValue) {
[XBLoadingView hideHUDViewWithDefault];
if (RESULT(returnValue)) {
......
......@@ -75,7 +75,7 @@
{
[XBLoadingView showHUDViewWithDefault];
WS(weakSelf);
[[NetworkRequestClassManager manager] networkRequestWithURL:SERVERREQUESTURL(SHOPPINGBAG) withRequestType:ZERO withParameter:shopCar withReturnValueBlock:^(id returnValue) {
[HTTP networkRequestWithURL:SERVERREQUESTURL(SHOPPINGBAG) withRequestType:ZERO withParameter:shopCar withReturnValueBlock:^(id returnValue) {
weakSelf.clientShoppingCarTableView.emptyDataSetSource = weakSelf;
weakSelf.clientShoppingCarTableView.emptyDataSetDelegate = weakSelf;
......
......@@ -154,7 +154,7 @@
{
WS(weakSelf);
[XBLoadingView showHUDViewWithDefault];
[[NetworkRequestClassManager manager] networkRequestWithURL:SERVERREQUESTURL(GETSHOPPERSCONSUMER) withRequestType:ZERO withParameter:condition withReturnValueBlock:^(id returnValue) {
[HTTP networkRequestWithURL:SERVERREQUESTURL(GETSHOPPERSCONSUMER) withRequestType:ZERO withParameter:condition withReturnValueBlock:^(id returnValue) {
weakSelf.informationTableview.emptyDataSetSource = weakSelf;
weakSelf.informationTableview.emptyDataSetDelegate = weakSelf;
......@@ -419,7 +419,7 @@
WS(weakSelf);
NSData *data = UIImageJPEGRepresentation(image, 0.5);
XBLoadingView *progressView = [XBLoadingView showHUDViewProgressLabel:@"上传头像中"];
[[NetworkRequestClassManager manager] uploadImageWithURL:SERVERREQUESTURL(UPLOADHEADER) withRequestType:ONE withImageDatas:data withParameter:nil withReturnValueBlock:^(id returnValue) {
[HTTP uploadImageWithURL:SERVERREQUESTURL(UPLOADHEADER) withRequestType:ONE withImageDatas:data withParameter:nil withReturnValueBlock:^(id returnValue) {
if (RESULT(returnValue)) {
[weakSelf modifyshoppersInformation:returnValue[@"data"] complete:^{
......@@ -451,7 +451,7 @@
MyclientEntityModel *customerEntity = nil;
customerEntity = [Customermanager manager].model;
customerEntity.picture = headerurl;
[[NetworkRequestClassManager manager] networkRequestWithURL:SERVERREQUESTURL(ADDCONSUMER) withRequestType:ZERO withParameter:customerEntity withReturnValueBlock:^(id returnValue) {
[HTTP networkRequestWithURL:SERVERREQUESTURL(ADDCONSUMER) withRequestType:ZERO withParameter:customerEntity withReturnValueBlock:^(id returnValue) {
[XBLoadingView hideHUDViewWithDefault];
if (RESULT(returnValue)) {
......@@ -488,7 +488,7 @@
- (void)SetupUserRequest
{
MyclientEntityModel *model = [Customermanager manager].model;
[[NetworkRequestClassManager manager] networkWithDictionaryRequestWithURL:[NSString stringWithFormat:@"%@%@",SERVERREQUESTURL(SAVEVISITEDTIME),model.fid] withRequestType:ONE withParameter:nil withReturnValueBlock:^(id returnValue) {
[HTTP networkWithDictionaryRequestWithURL:[NSString stringWithFormat:@"%@%@",SERVERREQUESTURL(SAVEVISITEDTIME),model.fid] withRequestType:ONE withParameter:nil withReturnValueBlock:^(id returnValue) {
if (RESULT(returnValue)) {
NSLog(@"写入客户访问时间成功");
......@@ -581,7 +581,7 @@
}
WS(weakSelf);
[XBLoadingView showHUDViewWithDefault];
[[NetworkRequestClassManager manager] networkRequestWithURL:SERVERREQUESTURL(ADDCONSUMER) withRequestType:ZERO withParameter:customerEntity withReturnValueBlock:^(id returnValue) {
[HTTP networkRequestWithURL:SERVERREQUESTURL(ADDCONSUMER) withRequestType:ZERO withParameter:customerEntity withReturnValueBlock:^(id returnValue) {
[XBLoadingView hideHUDViewWithDefault];
if (RESULT(returnValue)) {
......@@ -631,7 +631,7 @@
address.name = self.customerNameField.text;
address.miblephone = self.phoneNumberField.text;
address.address = self.customerAddress.text;
[[NetworkRequestClassManager manager] networkRequestWithURL:SERVERREQUESTURL(ADDADDRESS) withRequestType:ZERO withParameter:address withReturnValueBlock:^(id returnValue) {
[HTTP networkRequestWithURL:SERVERREQUESTURL(ADDADDRESS) withRequestType:ZERO withParameter:address withReturnValueBlock:^(id returnValue) {
if (RESULT(returnValue)) {
......
......@@ -142,7 +142,7 @@
{
[XBLoadingView showHUDViewWithDefault];
WS(weakSelf);
[[NetworkRequestClassManager manager] networkRequestWithURL:SERVERREQUESTURL(QUERYORDER) withRequestType:ZERO withParameter:allOrder withReturnValueBlock:^(id returnValue) {
[HTTP networkRequestWithURL:SERVERREQUESTURL(QUERYORDER) withRequestType:ZERO withParameter:allOrder withReturnValueBlock:^(id returnValue) {
weakSelf.customerOrderTableView.emptyDataSetSource = weakSelf;
weakSelf.customerOrderTableView.emptyDataSetDelegate = weakSelf;
......@@ -316,7 +316,7 @@
[XBLoadingView showHUDViewWithDefault];
OrderBill *model = [weakSelf.datasArray objectAtIndex_opple:cellindex];
[[NetworkRequestClassManager manager] networkWithDictionaryRequestWithURL:[NSString stringWithFormat:@"%@%@/%@/%@",SERVERREQUESTURL(RESETORDER),model.order.orderNumber,model.order.orderState,@"005"] withRequestType:ONE withParameter:nil withReturnValueBlock:^(id returnValue) {
[HTTP networkWithDictionaryRequestWithURL:[NSString stringWithFormat:@"%@%@/%@/%@",SERVERREQUESTURL(RESETORDER),model.order.orderNumber,model.order.orderState,@"005"] withRequestType:ONE withParameter:nil withReturnValueBlock:^(id returnValue) {
[XBLoadingView hideHUDViewWithDefault];
if (RESULT(returnValue)) {
......
......@@ -103,7 +103,7 @@
WS(weakSelf);
[XBLoadingView showHUDViewWithDefault];;
NSString *url = [NSString stringWithFormat:SERVERREQUESTURL(INTEGRALQUERY),[Shoppersmanager manager].Shoppers.employee.fid];
[[NetworkRequestClassManager manager] networkWithDictionaryRequestWithURL:url withRequestType:ONE withParameter:nil withReturnValueBlock:^(id returnValue) {
[HTTP networkWithDictionaryRequestWithURL:url withRequestType:ONE withParameter:nil withReturnValueBlock:^(id returnValue) {
[XBLoadingView hideHUDViewWithDefault];
[weakSelf endRefreshingForTableView:weakSelf.integralDetailsTableView];
......@@ -136,7 +136,7 @@
WS(weakSelf);
[XBLoadingView showHUDViewWithDefault];;
NSString *url = [NSString stringWithFormat:SERVERREQUESTURL(ALLEXCHANGERECORD),[Shoppersmanager manager].Shoppers.employee.fid];
[[NetworkRequestClassManager manager] networkWithDictionaryRequestWithURL:url withRequestType:ONE withParameter:nil withReturnValueBlock:^(id returnValue) {
[HTTP networkWithDictionaryRequestWithURL:url withRequestType:ONE withParameter:nil withReturnValueBlock:^(id returnValue) {
[XBLoadingView hideHUDViewWithDefault];
[weakSelf endRefreshingForTableView:weakSelf.integralDetailsTableView];
......
......@@ -106,7 +106,7 @@
{
WS(weakSelf);
[XBLoadingView showHUDViewWithDefault];
[[NetworkRequestClassManager manager] networkRequestWithURL:SERVERREQUESTURL(POSTDETAIL) withRequestType:ZERO withParameter:self.condition withReturnValueBlock:^(id returnValue) {
[HTTP networkRequestWithURL:SERVERREQUESTURL(POSTDETAIL) withRequestType:ZERO withParameter:self.condition withReturnValueBlock:^(id returnValue) {
[XBLoadingView hideHUDViewWithDefault];
if (RESULT(returnValue)) {
......@@ -231,7 +231,7 @@
reply.replyerId = [Shoppersmanager manager].Shoppers.employee.fid;
[XBLoadingView showHUDViewWithDefault];
WS(weakSelf);
[[NetworkRequestClassManager manager] networkRequestWithURL:SERVERREQUESTURL(REPLYPOST) withRequestType:ZERO withParameter:reply withReturnValueBlock:^(id returnValue) {
[HTTP networkRequestWithURL:SERVERREQUESTURL(REPLYPOST) withRequestType:ZERO withParameter:reply withReturnValueBlock:^(id returnValue) {
[XBLoadingView hideHUDViewWithDefault];
if (RESULT(returnValue)) {
......@@ -291,7 +291,7 @@
} sureBlock:^{
[XBLoadingView showHUDViewWithDefault];
WS(weakSelf);
[[NetworkRequestClassManager manager] networkWithDictionaryRequestWithURL:[NSString stringWithFormat:SERVERREQUESTURL(DELETEPOST),self.topicDetail.fid] withRequestType:NetworkRequestWithDELETE withParameter:nil withReturnValueBlock:^(id returnValue) {
[HTTP networkWithDictionaryRequestWithURL:[NSString stringWithFormat:SERVERREQUESTURL(DELETEPOST),self.topicDetail.fid] withRequestType:NetworkRequestWithDELETE withParameter:nil withReturnValueBlock:^(id returnValue) {
[XBLoadingView hideHUDViewWithDefault];
if (RESULT(returnValue)) {
[XBLoadingView showHUDViewWithSuccessText:@"删除成功" completeBlock:^{
......@@ -333,7 +333,7 @@
{
WS(weakSelf);
[XBLoadingView showHUDViewWithDefault];
[[NetworkRequestClassManager manager] networkWithDictionaryRequestWithURL:[NSString stringWithFormat:SERVERREQUESTURL(BASEREPLY),self.topicDetail.fid,replyId,isBest?@"true":@"false"] withRequestType:ONE withParameter:nil withReturnValueBlock:^(id returnValue) {
[HTTP networkWithDictionaryRequestWithURL:[NSString stringWithFormat:SERVERREQUESTURL(BASEREPLY),self.topicDetail.fid,replyId,isBest?@"true":@"false"] withRequestType:ONE withParameter:nil withReturnValueBlock:^(id returnValue) {
[XBLoadingView hideHUDViewWithDefault];
if (RESULT(returnValue)) {
[weakSelf getPostDetailAction:YES];
......@@ -353,7 +353,7 @@
[XBLoadingView showHUDViewWithDefault];
NSString *url = [NSString stringWithFormat:SERVERREQUESTURL(PRAISE),self.topicDetail.fid,!sender.selected?@"true":@"false"];
WS(weakSelf);
[[NetworkRequestClassManager manager] networkWithDictionaryRequestWithURL:url withRequestType:ONE withParameter:nil withReturnValueBlock:^(id returnValue) {
[HTTP networkWithDictionaryRequestWithURL:url withRequestType:ONE withParameter:nil withReturnValueBlock:^(id returnValue) {
[XBLoadingView hideHUDViewWithDefault];
if (RESULT(returnValue)) {
sender.selected = !sender.selected;
......
......@@ -98,7 +98,7 @@
{
[XBLoadingView showHUDViewWithDefault];
WS(weakSelf);
[[NetworkRequestClassManager manager] networkRequestWithURL:SERVERREQUESTURL(QUERTFORUMLIST) withRequestType:ZERO withParameter:condtion withReturnValueBlock:^(id returnValue) {
[HTTP networkRequestWithURL:SERVERREQUESTURL(QUERTFORUMLIST) withRequestType:ZERO withParameter:condtion withReturnValueBlock:^(id returnValue) {
[XBLoadingView hideHUDViewWithDefault];
[weakSelf endRefreshingForTableView:weakSelf.classificationListTableView];
......
......@@ -51,7 +51,7 @@
{
WS(weakSelf);
[XBLoadingView showHUDViewWithDefault];;
[[NetworkRequestClassManager manager] networkWithDictionaryRequestWithURL:SERVERREQUESTURL(FORUMTYPS) withRequestType:ONE withParameter:nil withReturnValueBlock:^(id returnValue) {
[HTTP networkWithDictionaryRequestWithURL:SERVERREQUESTURL(FORUMTYPS) withRequestType:ONE withParameter:nil withReturnValueBlock:^(id returnValue) {
[XBLoadingView hideHUDViewWithDefault];
[weakSelf endRefreshingForTableView:weakSelf.forumTableView];
......
......@@ -455,7 +455,7 @@
topic.attachments = (NSArray<TOAttachmentEntity>*)attachments;
WS(weakSelf);
[XBLoadingView showHUDViewWithDefault];
[[NetworkRequestClassManager manager] networkRequestWithURL:SERVERREQUESTURL(SUBMITTOPIC) withRequestType:ZERO withParameter:topic withReturnValueBlock:^(id returnValue) {
[HTTP networkRequestWithURL:SERVERREQUESTURL(SUBMITTOPIC) withRequestType:ZERO withParameter:topic withReturnValueBlock:^(id returnValue) {
[XBLoadingView hideHUDViewWithDefault];
if (RESULT(returnValue)) {
......
......@@ -77,7 +77,7 @@
WS(weakSelf);
[XBLoadingView showHUDViewWithDefault];;
NSString *url = [NSString stringWithFormat:SERVERREQUESTURL(INTEGRALQUERY),[Shoppersmanager manager].Shoppers.employee.fid];
[[NetworkRequestClassManager manager] networkWithDictionaryRequestWithURL:url withRequestType:ONE withParameter:nil withReturnValueBlock:^(id returnValue) {
[HTTP networkWithDictionaryRequestWithURL:url withRequestType:ONE withParameter:nil withReturnValueBlock:^(id returnValue) {
[XBLoadingView hideHUDViewWithDefault];
if (RESULT(returnValue)) {
......
......@@ -59,7 +59,7 @@
{
WS(weakSelf);
[XBLoadingView showHUDViewWithDefault];;
[[NetworkRequestClassManager manager] networkWithDictionaryRequestWithURL:[NSString stringWithFormat:SERVERREQUESTURL(STUDYITEMDETAIL),self.taskId] withRequestType:ONE withParameter:nil withReturnValueBlock:^(id returnValue) {
[HTTP networkWithDictionaryRequestWithURL:[NSString stringWithFormat:SERVERREQUESTURL(STUDYITEMDETAIL),self.taskId] withRequestType:ONE withParameter:nil withReturnValueBlock:^(id returnValue) {
[XBLoadingView hideHUDViewWithDefault];
if (RESULT(returnValue)) {
......@@ -231,7 +231,7 @@
[XBLoadingView showHUDViewWithDefault];
WS(weakSelf);
NSLog(@"%@",[[studyResult toDictionary] JSONString]);
[[NetworkRequestClassManager manager] networkRequestWithURL:SERVERREQUESTURL(SUBMITANSWER) withRequestType:ZERO withParameter:studyResult withReturnValueBlock:^(id returnValue) {
[HTTP networkRequestWithURL:SERVERREQUESTURL(SUBMITANSWER) withRequestType:ZERO withParameter:studyResult withReturnValueBlock:^(id returnValue) {
[XBLoadingView hideHUDViewWithDefault];
if (RESULT(returnValue)) {
......@@ -264,7 +264,7 @@
}else {
WS(weakSelf);
[XBLoadingView showHUDViewWithDefault];
[[NetworkRequestClassManager manager] networkWithDictionaryRequestWithURL:[NSString stringWithFormat:SERVERREQUESTURL(GETINTEGRAL),INSPECTIONTHROUGH] withRequestType:ONE withParameter:nil withReturnValueBlock:^(id returnValue) {
[HTTP networkWithDictionaryRequestWithURL:[NSString stringWithFormat:SERVERREQUESTURL(GETINTEGRAL),INSPECTIONTHROUGH] withRequestType:ONE withParameter:nil withReturnValueBlock:^(id returnValue) {
[XBLoadingView hideHUDViewWithDefault];
if (RESULT(returnValue)) {
AssessmentQualifiedViewController *qualified = [[[weakSelf class] getLearningCenterStoryboardClass] instantiateViewControllerWithIdentifier:@"AssessmentQualifiedViewController"];
......
......@@ -146,7 +146,7 @@
page.rows = 9999;
studyListModel.page = page;
[XBLoadingView showHUDViewWithDefault];
[[NetworkRequestClassManager manager] networkRequestWithURL:SERVERREQUESTURL(STUDYLIST) withRequestType:ZERO withParameter:studyListModel withReturnValueBlock:^(id returnValue) {
[HTTP networkRequestWithURL:SERVERREQUESTURL(STUDYLIST) withRequestType:ZERO withParameter:studyListModel withReturnValueBlock:^(id returnValue) {
[XBLoadingView hideHUDViewWithDefault];
if (RESULT(returnValue)) {
......@@ -212,7 +212,7 @@
playTimeEntity.employeeId = [Shoppersmanager manager].Shoppers.employee.fid;
playTimeEntity.playTime = [NSString stringWithFormat:@"%.0lf",playTime];
playTimeEntity.playPercent = [NSString stringWithFormat:@"%.2lf",percent];
[[NetworkRequestClassManager manager] networkRequestWithURL:SERVERREQUESTURL(ATTACHMENTPLAYTIME) withRequestType:ZERO withParameter:playTimeEntity withReturnValueBlock:^(id returnValue) {
[HTTP networkRequestWithURL:SERVERREQUESTURL(ATTACHMENTPLAYTIME) withRequestType:ZERO withParameter:playTimeEntity withReturnValueBlock:^(id returnValue) {
if (RESULT(returnValue)) {
attachment.playTime = playTimeEntity.playTime;
......@@ -255,7 +255,7 @@
dispatch_group_enter(group);
[XBLoadingView showHUDViewWithDefault];
// 任务一,学习项完成
[[NetworkRequestClassManager manager] networkWithDictionaryRequestWithURL:[NSString stringWithFormat:SERVERREQUESTURL(FINISHSTUDY),studuEntity.fid,[Shoppersmanager manager].Shoppers.employee.fid] withRequestType:ONE withParameter:nil withReturnValueBlock:^(id returnValue) {
[HTTP networkWithDictionaryRequestWithURL:[NSString stringWithFormat:SERVERREQUESTURL(FINISHSTUDY),studuEntity.fid,[Shoppersmanager manager].Shoppers.employee.fid] withRequestType:ONE withParameter:nil withReturnValueBlock:^(id returnValue) {
dispatch_group_leave(group);
if (RESULT(returnValue)) {
......@@ -269,7 +269,7 @@
}];
// 任务二,获得学习积分
dispatch_group_enter(group);
[[NetworkRequestClassManager manager] networkWithDictionaryRequestWithURL:[NSString stringWithFormat:SERVERREQUESTURL(GETINTEGRAL),STUDYFINISH] withRequestType:ONE withParameter:nil withReturnValueBlock:^(id returnValue) {
[HTTP networkWithDictionaryRequestWithURL:[NSString stringWithFormat:SERVERREQUESTURL(GETINTEGRAL),STUDYFINISH] withRequestType:ONE withParameter:nil withReturnValueBlock:^(id returnValue) {
dispatch_group_leave(group);
if (RESULT(returnValue)) {
......
......@@ -43,7 +43,7 @@
{
WS(weakSelf);
[XBLoadingView showHUDViewWithDefault];;
[[NetworkRequestClassManager manager] networkWithDictionaryRequestWithURL:SERVERREQUESTURL(STUDYTYPES) withRequestType:ONE withParameter:nil withReturnValueBlock:^(id returnValue) {
[HTTP networkWithDictionaryRequestWithURL:SERVERREQUESTURL(STUDYTYPES) withRequestType:ONE withParameter:nil withReturnValueBlock:^(id returnValue) {
[XBLoadingView hideHUDViewWithDefault];
if (RESULT(returnValue)) {
......
......@@ -51,7 +51,7 @@
{
WS(weakSelf);
[XBLoadingView showHUDViewWithDefault];
[[NetworkRequestClassManager manager] networkWithDictionaryRequestWithURL:[NSString stringWithFormat:SERVERREQUESTURL(GETPASSLEVELDETAILS),self.passLevelId] withRequestType:ONE withParameter:nil withReturnValueBlock:^(id returnValue) {
[HTTP networkWithDictionaryRequestWithURL:[NSString stringWithFormat:SERVERREQUESTURL(GETPASSLEVELDETAILS),self.passLevelId] withRequestType:ONE withParameter:nil withReturnValueBlock:^(id returnValue) {
[XBLoadingView hideHUDViewWithDefault];
if (RESULT(returnValue)) {
weakSelf.emigrated = [[TOPassLevelEntity alloc] initWithDictionary:returnValue[@"data"] error:nil];
......@@ -263,7 +263,7 @@
}
[XBLoadingView showHUDViewWithDefault];
WS(weakSelf);
[[NetworkRequestClassManager manager] networkRequestWithURL:SERVERREQUESTURL(SUBMITEMIGRATEDANSWER) withRequestType:ZERO withParameter:studyResult withReturnValueBlock:^(id returnValue) {
[HTTP networkRequestWithURL:SERVERREQUESTURL(SUBMITEMIGRATEDANSWER) withRequestType:ZERO withParameter:studyResult withReturnValueBlock:^(id returnValue) {
[XBLoadingView hideHUDViewWithDefault];
if (RESULT(returnValue)) {
......@@ -300,7 +300,7 @@
WS(weakSelf);
[XBLoadingView showHUDViewWithDefault];
NSString *url = [NSString stringWithFormat:SERVERREQUESTURL(GETINTEGRAL),RECRUITTHROUGH];
[[NetworkRequestClassManager manager] networkWithDictionaryRequestWithURL:url withRequestType:ONE withParameter:nil withReturnValueBlock:^(id returnValue) {
[HTTP networkWithDictionaryRequestWithURL:url withRequestType:ONE withParameter:nil withReturnValueBlock:^(id returnValue) {
[XBLoadingView hideHUDViewWithDefault];
if (RESULT(returnValue)) {
finish.state = ONE;
......
......@@ -42,7 +42,7 @@
page.rows = KROWS;
emigrated.page = page;
[XBLoadingView showHUDViewWithDefault];;
[[NetworkRequestClassManager manager] networkRequestWithURL:SERVERREQUESTURL(THROUGHLIST) withRequestType:ZERO withParameter:emigrated withReturnValueBlock:^(id returnValue) {
[HTTP networkRequestWithURL:SERVERREQUESTURL(THROUGHLIST) withRequestType:ZERO withParameter:emigrated withReturnValueBlock:^(id returnValue) {
[XBLoadingView hideHUDViewWithDefault];
if (RESULT(returnValue)) {
......
......@@ -165,7 +165,7 @@
login.username = self.userName.text;
login.password = self.passWord.text;
WS(weakSelf);
[[NetworkRequestClassManager manager] networkRequestWithURL:SERVERREQUESTURL(LOGIN) withRequestType:ZERO withParameter:login withReturnValueBlock:^(id returnValue) {
[HTTP networkRequestWithURL:SERVERREQUESTURL(LOGIN) withRequestType:ZERO withParameter:login withReturnValueBlock:^(id returnValue) {
[XBLoadingView hideHUDViewWithDefault];
if (RESULT(returnValue)) {
......@@ -289,7 +289,7 @@
}
[XBLoadingView showHUDViewWithDefault];
NSString *urlString = [NSString stringWithFormat:SERVERREQUESTURL(SENDSMS),inputPhoneNumber,self.identityView.userName.text];
[[NetworkRequestClassManager manager] networkWithDictionaryRequestWithURL:[self returnUrlString:urlString] withRequestType:ONE withParameter:nil withReturnValueBlock:^(id returnValue) {
[HTTP networkWithDictionaryRequestWithURL:[self returnUrlString:urlString] withRequestType:ONE withParameter:nil withReturnValueBlock:^(id returnValue) {
[XBLoadingView hideHUDViewWithDefault];
if (RESULT(returnValue)) {
[XBLoadingView showHUDViewWithText:@"发送验证码成功"];
......@@ -379,7 +379,7 @@
passwrod.username = self.userName.text;
passwrod.smsCode = self.identityView.verificationCode.text;
WS(weakSelf);
[[NetworkRequestClassManager manager] networkRequestWithURL:SERVERREQUESTURL(RESETPASSWORD) withRequestType:ZERO withParameter:passwrod withReturnValueBlock:^(id returnValue) {
[HTTP networkRequestWithURL:SERVERREQUESTURL(RESETPASSWORD) withRequestType:ZERO withParameter:passwrod withReturnValueBlock:^(id returnValue) {
[XBLoadingView hideHUDViewWithDefault];
if (RESULT(returnValue)) {
......@@ -424,7 +424,7 @@
//获取服务端版本大小
WS(weakSelf);
NSString *string = [NSString stringWithFormat:@"/employee/getUpgrade?apptype=IOS&version=%@",version];
[[NetworkRequestClassManager manager] networkWithDictionaryRequestWithURL:SERVERREQUESTURL(string) withRequestType:ONE withParameter:nil withReturnValueBlock:^(id returnValue) {
[HTTP networkWithDictionaryRequestWithURL:SERVERREQUESTURL(string) withRequestType:ONE withParameter:nil withReturnValueBlock:^(id returnValue) {
if (RESULT(returnValue)) {
NSDictionary *dict = returnValue[@"data"];
......
......@@ -128,7 +128,7 @@
{
WS(weakSelf);
[XBLoadingView showHUDViewWithDefaultWithView:self.view];
[[NetworkRequestClassManager manager] networkRequestWithURL:SERVERREQUESTURL(LOTTERYED) withRequestType:ZERO withParameter:self.drawModel withReturnValueBlock:^(id returnValue) {
[HTTP networkRequestWithURL:SERVERREQUESTURL(LOTTERYED) withRequestType:ZERO withParameter:self.drawModel withReturnValueBlock:^(id returnValue) {
[weakSelf endRefreshingForTableView:weakSelf.drawDetailsTableView];
weakSelf.drawDetailsTableView.emptyDataSetSource = weakSelf;
......
......@@ -82,7 +82,7 @@
{
WS(weakSelf);
[XBLoadingView showHUDViewWithDefault];
[[NetworkRequestClassManager manager] networkRequestWithURL:SERVERREQUESTURL(MESSAGELIST) withRequestType:0 withParameter:self.messageModel withReturnValueBlock:^(id returnValue) {
[HTTP networkRequestWithURL:SERVERREQUESTURL(MESSAGELIST) withRequestType:0 withParameter:self.messageModel withReturnValueBlock:^(id returnValue) {
[XBLoadingView hideHUDViewWithDefault];
[weakSelf endRefreshingForTableView:weakSelf.meesageTableView];
......@@ -105,7 +105,7 @@
{
WS(weakSelf);
[XBLoadingView showHUDViewWithDefault];
[[NetworkRequestClassManager manager] networkRequestWithURL:[NSString stringWithFormat:SERVERREQUESTURL(MESSAGE_READ),messageId,[Shoppersmanager manager].Shoppers.employee.fid] withRequestType:0 withParameter:nil withReturnValueBlock:^(id returnValue) {
[HTTP networkRequestWithURL:[NSString stringWithFormat:SERVERREQUESTURL(MESSAGE_READ),messageId,[Shoppersmanager manager].Shoppers.employee.fid] withRequestType:0 withParameter:nil withReturnValueBlock:^(id returnValue) {
[XBLoadingView hideHUDViewWithDefault];
if (RESULT(returnValue)) {
......
......@@ -75,7 +75,7 @@
{
[XBLoadingView showHUDViewWithDefault];
WS(weakSelf);
[[NetworkRequestClassManager manager] networkRequestWithURL:SERVERREQUESTURL(QUERYORDER) withRequestType:ZERO withParameter:allOrder withReturnValueBlock:^(id returnValue) {
[HTTP networkRequestWithURL:SERVERREQUESTURL(QUERYORDER) withRequestType:ZERO withParameter:allOrder withReturnValueBlock:^(id returnValue) {
weakSelf.orderRecordTableView.emptyDataSetSource = weakSelf;
weakSelf.orderRecordTableView.emptyDataSetDelegate = weakSelf;
......
......@@ -192,7 +192,7 @@ NSString *const PROMOTIONALSTRING = @"促销信息";
[XBLoadingView showHUDViewWithDefault];
WS(weakSelf);
// 订单详情
[[NetworkRequestClassManager manager] networkWithDictionaryRequestWithURL:[NSString stringWithFormat:@"%@%@",SERVERREQUESTURL(ORDERDETAILS),self.orderCode] withRequestType:ONE withParameter:nil withReturnValueBlock:^(id returnValue) {
[HTTP networkWithDictionaryRequestWithURL:[NSString stringWithFormat:@"%@%@",SERVERREQUESTURL(ORDERDETAILS),self.orderCode] withRequestType:ONE withParameter:nil withReturnValueBlock:^(id returnValue) {
dispatch_group_leave(group);
if (RESULT(returnValue)) {
......@@ -209,7 +209,7 @@ NSString *const PROMOTIONALSTRING = @"促销信息";
if (self.isShowPayButton) {
// 查询实时促销信息
dispatch_group_enter(group);
[[NetworkRequestClassManager manager] networkWithDictionaryRequestWithURL:[NSString stringWithFormat:SERVERREQUESTURL(PROMOTIONAL),self.orderCode] withRequestType:ONE withParameter:nil withReturnValueBlock:^(id returnValue) {
[HTTP networkWithDictionaryRequestWithURL:[NSString stringWithFormat:SERVERREQUESTURL(PROMOTIONAL),self.orderCode] withRequestType:ONE withParameter:nil withReturnValueBlock:^(id returnValue) {
dispatch_group_leave(group);
[XBLoadingView hideHUDViewWithDefault];
......@@ -254,7 +254,7 @@ NSString *const PROMOTIONALSTRING = @"促销信息";
}else {
// 查询历史促销信息
dispatch_group_enter(group);
[[NetworkRequestClassManager manager] networkWithDictionaryRequestWithURL:[NSString stringWithFormat:SERVERREQUESTURL(OLDPROMOTIONAL),self.orderCode] withRequestType:ONE withParameter:nil withReturnValueBlock:^(id returnValue) {
[HTTP networkWithDictionaryRequestWithURL:[NSString stringWithFormat:SERVERREQUESTURL(OLDPROMOTIONAL),self.orderCode] withRequestType:ONE withParameter:nil withReturnValueBlock:^(id returnValue) {
dispatch_group_leave(group);
[XBLoadingView hideHUDViewWithDefault];
......@@ -347,7 +347,7 @@ NSString *const PROMOTIONALSTRING = @"促销信息";
page.page = ZERO;
page.rows = ONE;
queryDrawState.page = page;
[[NetworkRequestClassManager manager] networkRequestWithURL:SERVERREQUESTURL(LOTTERYED) withRequestType:ZERO withParameter:queryDrawState withReturnValueBlock:^(id returnValue) {
[HTTP networkRequestWithURL:SERVERREQUESTURL(LOTTERYED) withRequestType:ZERO withParameter:queryDrawState withReturnValueBlock:^(id returnValue) {
dispatch_group_leave(group);
if (RESULT(returnValue)) {
NSDictionary *dict = [returnValue[@"data"][@"list"] firstObject];
......@@ -532,7 +532,7 @@ NSString *const PROMOTIONALSTRING = @"促销信息";
{
WS(weakSelf);
[XBLoadingView showHUDViewWithDefault];
[[NetworkRequestClassManager manager] networkWithDictionaryRequestWithURL:[NSString stringWithFormat:USEWECHATCARD,number,orderNumber,orderTotal] withRequestType:ZERO withParameter:nil withReturnValueBlock:^(id returnValue) {
[HTTP networkWithDictionaryRequestWithURL:[NSString stringWithFormat:USEWECHATCARD,number,orderNumber,orderTotal] withRequestType:ZERO withParameter:nil withReturnValueBlock:^(id returnValue) {
[XBLoadingView hideHUDViewWithDefault];
if (RESULT(returnValue)) {
......@@ -1027,7 +1027,7 @@ NSString *const PROMOTIONALSTRING = @"促销信息";
[alertVC addAction:[UIAlertAction actionWithTitle:@"确认" style:UIAlertActionStyleDestructive handler:^(UIAlertAction * _Nonnull action)
{
[XBLoadingView showHUDViewWithDefault];
[[NetworkRequestClassManager manager] networkWithDictionaryRequestWithURL:[NSString stringWithFormat:@"%@%@/%@/%@",SERVERREQUESTURL(RESETORDER),_orderCode,@"001",@"005"] withRequestType:ONE withParameter:nil withReturnValueBlock:^(id returnValue) {
[HTTP networkWithDictionaryRequestWithURL:[NSString stringWithFormat:@"%@%@/%@/%@",SERVERREQUESTURL(RESETORDER),_orderCode,@"001",@"005"] withRequestType:ONE withParameter:nil withReturnValueBlock:^(id returnValue) {
[XBLoadingView hideHUDViewWithDefault];
if (RESULT(returnValue)) {
[XBLoadingView showHUDViewWithSuccessText:@"撤销成功" completeBlock:nil];
......
......@@ -98,7 +98,7 @@
{
WS(weakSelf);
[XBLoadingView showHUDViewWithDefaultWithView:self.view];
[[NetworkRequestClassManager manager] networkRequestWithURL:SERVERREQUESTURL(PAYMENTS) withRequestType:ZERO withParameter:self.model withReturnValueBlock:^(id returnValue) {
[HTTP networkRequestWithURL:SERVERREQUESTURL(PAYMENTS) withRequestType:ZERO withParameter:self.model withReturnValueBlock:^(id returnValue) {
weakSelf.paymentsTableView.emptyDataSetSource = weakSelf;
weakSelf.paymentsTableView.emptyDataSetDelegate = weakSelf;
......
......@@ -172,7 +172,7 @@
employ.employee.birthday = [NSString stringWithFormat:@"%@ 00:00:00",self.informationArray[1][2]];
employ.employee.mobilePhone = self.informationArray[1][3];
employ.employee.isComplete = YES;
[[NetworkRequestClassManager manager] networkRequestWithURL:SERVERREQUESTURL(MODITYSHOPPERSINFORMATION) withRequestType:ZERO withParameter:employ withReturnValueBlock:^(id returnValue) {
[HTTP networkRequestWithURL:SERVERREQUESTURL(MODITYSHOPPERSINFORMATION) withRequestType:ZERO withParameter:employ withReturnValueBlock:^(id returnValue) {
[XBLoadingView hideHUDViewWithDefault];
if (RESULT(returnValue)) {
......
......@@ -52,7 +52,7 @@
WS(weakSelf);
[XBLoadingView showHUDViewWithDefault];;
NSString *url = [NSString stringWithFormat:SERVERREQUESTURL(PRIZEBILLDETAILS),self.prizeBillNumber];
[[NetworkRequestClassManager manager] networkWithDictionaryRequestWithURL:url withRequestType:ONE withParameter:nil withReturnValueBlock:^(id returnValue) {
[HTTP networkWithDictionaryRequestWithURL:url withRequestType:ONE withParameter:nil withReturnValueBlock:^(id returnValue) {
[XBLoadingView hideHUDViewWithDefault];
if (RESULT(returnValue)) {
......
......@@ -88,7 +88,7 @@
dispatch_group_t group = dispatch_group_create();
dispatch_group_enter(group);
//任务一 请求奖品列表
[[NetworkRequestClassManager manager] networkRequestWithURL:SERVERREQUESTURL(PRIZELIST) withRequestType:ZERO withParameter:self.queryPrizeModel withReturnValueBlock:^(id returnValue) {
[HTTP networkRequestWithURL:SERVERREQUESTURL(PRIZELIST) withRequestType:ZERO withParameter:self.queryPrizeModel withReturnValueBlock:^(id returnValue) {
dispatch_group_leave(group);
[weakSelf endRefreshingForTableView:weakSelf.prizeListCollectionView];
weakSelf.prizeListCollectionView.emptyDataSetSource = weakSelf;
......@@ -113,7 +113,7 @@
}];
//任务二 查询是否有兑换资格
dispatch_group_enter(group);
[[NetworkRequestClassManager manager] networkWithDictionaryRequestWithURL:[NSString stringWithFormat:SERVERREQUESTURL(EXCHANGEQUALIFICATION),[Shoppersmanager manager].Shoppers.employee.fid] withRequestType:ONE withParameter:nil withReturnValueBlock:^(id returnValue) {
[HTTP networkWithDictionaryRequestWithURL:[NSString stringWithFormat:SERVERREQUESTURL(EXCHANGEQUALIFICATION),[Shoppersmanager manager].Shoppers.employee.fid] withRequestType:ONE withParameter:nil withReturnValueBlock:^(id returnValue) {
dispatch_group_leave(group);
if (RESULT(returnValue)) {
......
......@@ -91,7 +91,7 @@
WS(weakSelf);
[XBLoadingView showHUDViewWithDefault];
NSString *url = [NSString stringWithFormat:@"%@%@",SERVERREQUESTURL(GOODSDETAILS),_goodsID];
[[NetworkRequestClassManager manager] networkWithDictionaryRequestWithURL:url withRequestType:ONE withParameter:nil withReturnValueBlock:^(id returnValue) {
[HTTP networkWithDictionaryRequestWithURL:url withRequestType:ONE withParameter:nil withReturnValueBlock:^(id returnValue) {
[XBLoadingView hideHUDViewWithDefault];
if (RESULT(returnValue)) {
......@@ -385,7 +385,7 @@
shopCar.count = self.headerView.goodsNumber.text;
WS(weakSelf);
[XBLoadingView showHUDViewWithDefault];
[[NetworkRequestClassManager manager] networkRequestWithURL:SERVERREQUESTURL(ADDSHOPPINGBAG) withRequestType:ZERO withParameter:shopCar withReturnValueBlock:^(id returnValue) {
[HTTP networkRequestWithURL:SERVERREQUESTURL(ADDSHOPPINGBAG) withRequestType:ZERO withParameter:shopCar withReturnValueBlock:^(id returnValue) {
[XBLoadingView hideHUDViewWithDefault];
if (RESULT(returnValue)) {
......
......@@ -158,7 +158,7 @@
- (void)getScreeningdatasisRemoveArray:(BOOL)remove
{
WS(weakSelf);
[[NetworkRequestClassManager manager] networkWithDictionaryRequestWithURL:SERVERREQUESTURL(PRODUCTSCREENING) withRequestType:ONE withParameter:nil withReturnValueBlock:^(id returnValue) {
[HTTP networkWithDictionaryRequestWithURL:SERVERREQUESTURL(PRODUCTSCREENING) withRequestType:ONE withParameter:nil withReturnValueBlock:^(id returnValue) {
if (RESULT(returnValue)) {
if (remove) {
......@@ -189,7 +189,7 @@
{
[XBLoadingView showHUDViewWithDefault];
WS(weakSelf);
[[NetworkRequestClassManager manager] networkRequestWithURL:SERVERREQUESTURL(PRODUCTLIST) withRequestType:ZERO withParameter:conditon withReturnValueBlock:^(id returnValue) {
[HTTP networkRequestWithURL:SERVERREQUESTURL(PRODUCTLIST) withRequestType:ZERO withParameter:conditon withReturnValueBlock:^(id returnValue) {
weakSelf.productCollectionView.emptyDataSetSource = weakSelf;
weakSelf.productCollectionView.emptyDataSetDelegate = weakSelf;
......@@ -343,7 +343,7 @@
{
WS(weakSelf);
[XBLoadingView showHUDViewWithDefault];
[[NetworkRequestClassManager manager] networkWithDictionaryRequestWithURL:[NSString stringWithFormat:@"%@%@",SERVERREQUESTURL(BARCODESEARCH),_barcode] withRequestType:ONE withParameter:nil withReturnValueBlock:^(id returnValue) {
[HTTP networkWithDictionaryRequestWithURL:[NSString stringWithFormat:@"%@%@",SERVERREQUESTURL(BARCODESEARCH),_barcode] withRequestType:ONE withParameter:nil withReturnValueBlock:^(id returnValue) {
[weakSelf endRefreshingForTableView:self.productCollectionView];
[XBLoadingView hideHUDViewWithDefault];
......@@ -715,7 +715,7 @@
shopCar.consumerId = [Customermanager manager].model.fid;
shopCar.goodsId = model.fid;
shopCar.count = @"1";
[[NetworkRequestClassManager manager] networkRequestWithURL:SERVERREQUESTURL(ADDSHOPPINGBAG) withRequestType:ZERO withParameter:shopCar withReturnValueBlock:^(id returnValue) {
[HTTP networkRequestWithURL:SERVERREQUESTURL(ADDSHOPPINGBAG) withRequestType:ZERO withParameter:shopCar withReturnValueBlock:^(id returnValue) {
if (RESULT(returnValue)) {
response();
}else
......
......@@ -58,7 +58,7 @@
withdrawal.billType = weakSelf.billType;
withdrawal.bankCardNumber = weakSelf.bankCardNumber;
NSLog(@"%@",[[withdrawal toDictionary] JSONString]);
[[NetworkRequestClassManager manager] networkRequestWithURL:SERVERREQUESTURL(WITHDRAWAL) withRequestType:ZERO withParameter:withdrawal withReturnValueBlock:^(id returnValue) {
[HTTP networkRequestWithURL:SERVERREQUESTURL(WITHDRAWAL) withRequestType:ZERO withParameter:withdrawal withReturnValueBlock:^(id returnValue) {
[XBLoadingView hideHUDViewWithDefault];
if (RESULT(returnValue)) {
weakSelf.applyUUID = returnValue[@"data"];
......@@ -103,7 +103,7 @@
[XBLoadingView showHUDViewWithDefault];
WS(weakSelf);
NSString *urlString = [NSString stringWithFormat:@"%@/%@",WITHDRAWALPROGRESSDETAILS,self.applyUUID];
[[NetworkRequestClassManager manager] networkWithDictionaryRequestWithURL:SERVERREQUESTURL(urlString) withRequestType:ONE withParameter:nil withReturnValueBlock:^(id returnValue) {
[HTTP networkWithDictionaryRequestWithURL:SERVERREQUESTURL(urlString) withRequestType:ONE withParameter:nil withReturnValueBlock:^(id returnValue) {
[XBLoadingView hideHUDViewWithDefault];
if (RESULT(returnValue)) {
TOApplyBillEntity *result = [[TOApplyBillEntity alloc]initWithDictionary:returnValue[@"data"] error:nil];
......
......@@ -155,7 +155,7 @@
WS(weakSelf);
[XBLoadingView showHUDViewWithDefault];
NSString *url = [NSString stringWithFormat:@"%@/%@",REBATE,[Shoppersmanager manager].Shoppers.employee.fid];
[[NetworkRequestClassManager manager] networkWithDictionaryRequestWithURL:SERVERREQUESTURL(url) withRequestType:ONE withParameter:nil withReturnValueBlock:^(id returnValue) {
[HTTP networkWithDictionaryRequestWithURL:SERVERREQUESTURL(url) withRequestType:ONE withParameter:nil withReturnValueBlock:^(id returnValue) {
[XBLoadingView hideHUDViewWithDefault];
if (RESULT(returnValue)) {
......@@ -273,7 +273,7 @@
[XBLoadingView showHUDViewWithDefault];
WS(weakSelf);
TOBankCardEntity *entity = self.resultEntity.bankCards[0];
[[NetworkRequestClassManager manager] networkWithDictionaryRequestWithURL:[NSString stringWithFormat:SERVERREQUESTURL(UNBINDING),entity.bankAccount] withRequestType:ONE withParameter:nil withReturnValueBlock:^(id returnValue) {
[HTTP networkWithDictionaryRequestWithURL:[NSString stringWithFormat:SERVERREQUESTURL(UNBINDING),entity.bankAccount] withRequestType:ONE withParameter:nil withReturnValueBlock:^(id returnValue) {
[XBLoadingView hideHUDViewWithDefault];
if (RESULT(returnValue)) {
......
......@@ -140,7 +140,7 @@
- (void)getdatasAction
{
WS(weakSelf);
[[NetworkRequestClassManager manager] networkRequestWithURL:SERVERREQUESTURL(SCENESCREENING) withRequestType:ONE withParameter:nil withReturnValueBlock:^(id returnValue) {
[HTTP networkRequestWithURL:SERVERREQUESTURL(SCENESCREENING) withRequestType:ONE withParameter:nil withReturnValueBlock:^(id returnValue) {
if (RESULT(returnValue)) {
weakSelf.filter = [[SceneFilter alloc]initWithDictionary:returnValue[@"data"] error:nil];
......@@ -160,7 +160,7 @@
{
[XBLoadingView showHUDViewWithDefault];
WS(weakSelf);
[[NetworkRequestClassManager manager] networkRequestWithURL:SERVERREQUESTURL(SCENELIST) withRequestType:ZERO withParameter:condition withReturnValueBlock:^(id returnValue) {
[HTTP networkRequestWithURL:SERVERREQUESTURL(SCENELIST) withRequestType:ZERO withParameter:condition withReturnValueBlock:^(id returnValue) {
weakSelf.seceneLibararyCollectionView.emptyDataSetSource = weakSelf;
weakSelf.seceneLibararyCollectionView.emptyDataSetDelegate = weakSelf;
......
......@@ -153,7 +153,7 @@
{
WS(weakSelf);
[XBLoadingView showHUDViewWithDefault];
[[NetworkRequestClassManager manager] networkWithDictionaryRequestWithURL:SERVERREQUESTURL(HOTSEARCH) withRequestType:ONE withParameter:nil withReturnValueBlock:^(id returnValue) {
[HTTP networkWithDictionaryRequestWithURL:SERVERREQUESTURL(HOTSEARCH) withRequestType:ONE withParameter:nil withReturnValueBlock:^(id returnValue) {
[XBLoadingView hideHUDViewWithDefault];
if (RESULT(returnValue)) {
......
......@@ -471,7 +471,7 @@
[XBLoadingView showHUDViewWithDefault];
WS(weakSelf);
NSLog(@"%@",[order toDictionary]);
[[NetworkRequestClassManager manager] networkRequestWithURL:SERVERREQUESTURL(CONFIRMPAY) withRequestType:ZERO withParameter:order withReturnValueBlock:^(id returnValue) {
[HTTP networkRequestWithURL:SERVERREQUESTURL(CONFIRMPAY) withRequestType:ZERO withParameter:order withReturnValueBlock:^(id returnValue) {
[XBLoadingView hideHUDViewWithDefault];
if (RESULT(returnValue)) {
......
......@@ -186,7 +186,7 @@
address.address = self.detailsAddress.text;
[XBLoadingView showHUDViewWithDefault];
WS(weakSelf);
[[NetworkRequestClassManager manager] networkRequestWithURL:SERVERREQUESTURL(ADDADDRESS) withRequestType:ZERO withParameter:address withReturnValueBlock:^(id returnValue) {
[HTTP networkRequestWithURL:SERVERREQUESTURL(ADDADDRESS) withRequestType:ZERO withParameter:address withReturnValueBlock:^(id returnValue) {
[XBLoadingView hideHUDViewWithDefault];
if (RESULT(returnValue)) {
......@@ -239,7 +239,7 @@
address.fid = self.model.fid;
[XBLoadingView showHUDViewWithDefault];
WS(weakSelf);
[[NetworkRequestClassManager manager] networkRequestWithURL:SERVERREQUESTURL(CHANGEADDRESS) withRequestType:ZERO withParameter:address withReturnValueBlock:^(id returnValue) {
[HTTP networkRequestWithURL:SERVERREQUESTURL(CHANGEADDRESS) withRequestType:ZERO withParameter:address withReturnValueBlock:^(id returnValue) {
[XBLoadingView hideHUDViewWithDefault];
if (RESULT(returnValue)) {
......@@ -295,7 +295,7 @@
{
[XBLoadingView showHUDViewWithDefault];
WS(weakSelf);
[[NetworkRequestClassManager manager] networkRequestWithURL:[NSString stringWithFormat:@"%@%@",SERVERREQUESTURL(REMOVEADDRESS),_model.fid] withRequestType:ONE withParameter:nil withReturnValueBlock:^(id returnValue) {
[HTTP networkRequestWithURL:[NSString stringWithFormat:@"%@%@",SERVERREQUESTURL(REMOVEADDRESS),_model.fid] withRequestType:ONE withParameter:nil withReturnValueBlock:^(id returnValue) {
[XBLoadingView hideHUDViewWithDefault];
if (RESULT(returnValue)) {
......
......@@ -112,7 +112,7 @@
{
[XBLoadingView showHUDViewWithDefault];
WS(weakSelf);
[[NetworkRequestClassManager manager] networkWithDictionaryRequestWithURL:[NSString stringWithFormat:@"%@%@",SERVERREQUESTURL(SHIPPINGADDRESS),[Customermanager manager].model.fid] withRequestType:ONE withParameter:nil withReturnValueBlock:^(id returnValue) {
[HTTP networkWithDictionaryRequestWithURL:[NSString stringWithFormat:@"%@%@",SERVERREQUESTURL(SHIPPINGADDRESS),[Customermanager manager].model.fid] withRequestType:ONE withParameter:nil withReturnValueBlock:^(id returnValue) {
[XBLoadingView hideHUDViewWithDefault];
if (RESULT(returnValue)) {
......@@ -393,7 +393,7 @@
order.orderdetailList = (NSArray<TOOrderdetailEntity> *)goodidArr;
[XBLoadingView showHUDViewWithDefault];
WS(weakSelf);
[[NetworkRequestClassManager manager] networkRequestWithURL:SERVERREQUESTURL(CREATEORDER) withRequestType:ZERO withParameter:order withReturnValueBlock:^(id returnValue) {
[HTTP networkRequestWithURL:SERVERREQUESTURL(CREATEORDER) withRequestType:ZERO withParameter:order withReturnValueBlock:^(id returnValue) {
[XBLoadingView hideHUDViewWithDefault];
if (RESULT(returnValue)) {
//商品购物车id
......
......@@ -237,7 +237,7 @@
shopcarNumber.dp = Newpage;
[XBLoadingView showHUDViewWithDefault];
WS(weakSelf);
[[NetworkRequestClassManager manager] networkRequestWithURL:SERVERREQUESTURL(SHOPPINGBAG) withRequestType:ZERO withParameter:shopcarNumber withReturnValueBlock:^(id returnValue) {
[HTTP networkRequestWithURL:SERVERREQUESTURL(SHOPPINGBAG) withRequestType:ZERO withParameter:shopcarNumber withReturnValueBlock:^(id returnValue) {
weakSelf.shoppingTableview.emptyDataSetSource = weakSelf;
[weakSelf endRefreshingForTableView:weakSelf.shoppingTableview];
......@@ -368,7 +368,7 @@
DeleteCartRequest *delecteGoods = [[DeleteCartRequest alloc]init];
delecteGoods.cartIds = goodsCode;
WS(weakSelf);
[[NetworkRequestClassManager manager] networkRequestWithURL:SERVERREQUESTURL(REMOVESHOPPINGBAG) withRequestType:ZERO withParameter:delecteGoods withReturnValueBlock:^(id returnValue) {
[HTTP networkRequestWithURL:SERVERREQUESTURL(REMOVESHOPPINGBAG) withRequestType:ZERO withParameter:delecteGoods withReturnValueBlock:^(id returnValue) {
[XBLoadingView hideHUDViewWithDefault];
if (RESULT(returnValue)) {
......@@ -465,7 +465,7 @@
}
delecteGoods.cartIds = codeArr;
WS(weakSelf);
[[NetworkRequestClassManager manager] networkRequestWithURL:SERVERREQUESTURL(REMOVESHOPPINGBAG) withRequestType:ZERO withParameter:delecteGoods withReturnValueBlock:^(id returnValue) {
[HTTP networkRequestWithURL:SERVERREQUESTURL(REMOVESHOPPINGBAG) withRequestType:ZERO withParameter:delecteGoods withReturnValueBlock:^(id returnValue) {
[XBLoadingView hideHUDViewWithDefault];
if (RESULT(returnValue)) {
......@@ -504,7 +504,7 @@
dispatch_group_enter(group);
NSLog(@"%@",[NSString stringWithFormat:@"%@%@/%@/%@/%ld",SERVERREQUESTURL(CHANGESHOPPINGBAGNUMBERPRICE),model.fid,model.goodsId,[model.costPrice stringValue],model.goodsNum]);
[[NetworkRequestClassManager manager] networkWithDictionaryRequestWithURL:[NSString stringWithFormat:@"%@%@/%@/%@/%ld",SERVERREQUESTURL(CHANGESHOPPINGBAGNUMBERPRICE),model.fid,model.goodsId,[model.costPrice stringValue],model.goodsNum] withRequestType:ONE withParameter:nil withReturnValueBlock:^(id returnValue) {
[HTTP networkWithDictionaryRequestWithURL:[NSString stringWithFormat:@"%@%@/%@/%@/%ld",SERVERREQUESTURL(CHANGESHOPPINGBAGNUMBERPRICE),model.fid,model.goodsId,[model.costPrice stringValue],model.goodsNum] withRequestType:ONE withParameter:nil withReturnValueBlock:^(id returnValue) {
dispatch_group_leave(group);
if (RESULT(returnValue)) {
......@@ -549,7 +549,7 @@
//商品数量
NSString *goodsNumberString = [NSString stringWithFormat:@"%ld",(long)goodsNumber];
WS(weakSelf);
[[NetworkRequestClassManager manager] networkWithDictionaryRequestWithURL:[NSString stringWithFormat:@"%@%@/%@/%@/%@",SERVERREQUESTURL(CHANGESHOPPINGBAGNUMBERPRICE),carid,goodsis,costpriceString,goodsNumberString] withRequestType:ONE withParameter:nil withReturnValueBlock:^(id returnValue) {
[HTTP networkWithDictionaryRequestWithURL:[NSString stringWithFormat:@"%@%@/%@/%@/%@",SERVERREQUESTURL(CHANGESHOPPINGBAGNUMBERPRICE),carid,goodsis,costpriceString,goodsNumberString] withRequestType:ONE withParameter:nil withReturnValueBlock:^(id returnValue) {
[XBLoadingView hideHUDViewWithDefault];
result(returnValue);//提供是否支持修改的参数
......
......@@ -147,7 +147,7 @@
WS(weakSelf);
NSData *data = UIImageJPEGRepresentation(image, 0.5);
XBLoadingView *progressView = [XBLoadingView showHUDViewProgressLabel:@"上传头像中"];
[[NetworkRequestClassManager manager] uploadImageWithURL:SERVERREQUESTURL(UPLOADHEADER) withRequestType:ONE withImageDatas:data withParameter:nil withReturnValueBlock:^(id returnValue) {
[HTTP uploadImageWithURL:SERVERREQUESTURL(UPLOADHEADER) withRequestType:ONE withImageDatas:data withParameter:nil withReturnValueBlock:^(id returnValue) {
if (RESULT(returnValue)) {
[weakSelf modifyshoppersInformation:returnValue[@"data"] complete:^{
......@@ -179,7 +179,7 @@
RsEmployeeRequest *employ = [[RsEmployeeRequest alloc]init];
employ.employee = [Shoppersmanager manager].Shoppers.employee;
employ.employee.picture = headerurl;
[[NetworkRequestClassManager manager] networkRequestWithURL:SERVERREQUESTURL(MODITYSHOPPERSINFORMATION) withRequestType:ZERO withParameter:employ withReturnValueBlock:^(id returnValue) {
[HTTP networkRequestWithURL:SERVERREQUESTURL(MODITYSHOPPERSINFORMATION) withRequestType:ZERO withParameter:employ withReturnValueBlock:^(id returnValue) {
[XBLoadingView hideHUDViewWithDefault];
if (RESULT(returnValue)) {
......@@ -213,7 +213,7 @@
[alertVC addAction:[UIAlertAction actionWithTitle:@"确认" style:UIAlertActionStyleDestructive handler:^(UIAlertAction * _Nonnull action) {
[XBLoadingView showHUDViewWithDefault];
[[NetworkRequestClassManager manager] networkWithDictionaryRequestWithURL:SERVERREQUESTURL(CANCELLOGIN) withRequestType:ONE withParameter:nil withReturnValueBlock:^(id returnValue) {
[HTTP networkWithDictionaryRequestWithURL:SERVERREQUESTURL(CANCELLOGIN) withRequestType:ONE withParameter:nil withReturnValueBlock:^(id returnValue) {
[XBLoadingView hideHUDViewWithDefault];
if (RESULT(returnValue)) {
......@@ -277,7 +277,7 @@
login.username = self.userName.text;
login.password = self.passWord.text;
WS(weakSelf);
[[NetworkRequestClassManager manager] networkRequestWithURL:SERVERREQUESTURL(LOGIN) withRequestType:ZERO withParameter:login withReturnValueBlock:^(id returnValue) {
[HTTP networkRequestWithURL:SERVERREQUESTURL(LOGIN) withRequestType:ZERO withParameter:login withReturnValueBlock:^(id returnValue) {
[XBLoadingView hideHUDViewWithDefault];
if (RESULT(returnValue)) {
......
......@@ -98,7 +98,7 @@
{
WS(weakSelf);
[XBLoadingView showHUDViewWithDefaultWithView:self.view];
[[NetworkRequestClassManager manager] networkRequestWithURL:SERVERREQUESTURL(WITHDRAWALPROGRESS) withRequestType:ZERO withParameter:self.model withReturnValueBlock:^(id returnValue) {
[HTTP networkRequestWithURL:SERVERREQUESTURL(WITHDRAWALPROGRESS) withRequestType:ZERO withParameter:self.model withReturnValueBlock:^(id returnValue) {
weakSelf.withdrawalTableView.emptyDataSetSource = weakSelf;
weakSelf.withdrawalTableView.emptyDataSetDelegate = weakSelf;
......
......@@ -426,7 +426,7 @@
#pragma mark -查询购物车数量
- (void)QueryShoppingCarNumber
{
[[NetworkRequestClassManager manager] networkWithDictionaryRequestWithURL:[NSString stringWithFormat:@"%@%@",SERVERREQUESTURL(QUERYSHOPPINGBAGNUMBER),[Customermanager manager].model.fid] withRequestType:ONE withParameter:nil withReturnValueBlock:^(id returnValue) {
[HTTP networkWithDictionaryRequestWithURL:[NSString stringWithFormat:@"%@%@",SERVERREQUESTURL(QUERYSHOPPINGBAGNUMBER),[Customermanager manager].model.fid] withRequestType:ONE withParameter:nil withReturnValueBlock:^(id returnValue) {
if (RESULT(returnValue)) {
NSLog(@"更新购物车数量成功");
......@@ -682,8 +682,6 @@
}
- (void)dealloc
{
NSLog(@"释放%@控制器",self);
......
......@@ -57,34 +57,12 @@
#import "CustomTOAfficheEntity.h"
#import "ICRPlaceholderTextView.h"
// Include any system framework and library headers here that should be included in all compilation units.
// You will also need to set the Prefix Header build setting of one or more of your targets to reference this file.
/**
* 禁止所有的打印,打包时使用
*/
//#ifdef DEBUG
//#define NSLog(...) NSLog(__VA_ARGS__)
//#define debugMethod() NSLog(@"%s", __func__)
//#else
//#define NSLog(...)
//#define debugMethod()
//#endif
//
//#ifdef DEBUG
//
//#define NSLog(FORMAT, ...) fprintf(stderr,"%s:%d\t%s\n",[[[NSString stringWithUTF8String:__FILE__] lastPathComponent] UTF8String], __LINE__, [[NSString stringWithFormat:FORMAT, ##__VA_ARGS__] UTF8String]);
//
//#else
//
//#define NSLog(...)
//
//#endif
/**
判断请求是否成功
*/
//判断请求是否成功
#define RESULT(response) [returnValue[@"code"] isEqualToNumber:@0]
//网络请求
#define HTTP [NetworkRequestClassManager manager]
/**
保存账号密码serviceName
......
......@@ -237,7 +237,7 @@
{
WS(weakSelf);
//场景筛选条件
[[NetworkRequestClassManager manager] networkRequestWithURL:SERVERREQUESTURL(SCENESCREENING) withRequestType:ONE withParameter:nil withReturnValueBlock:^(id returnValue) {
[HTTP networkRequestWithURL:SERVERREQUESTURL(SCENESCREENING) withRequestType:ONE withParameter:nil withReturnValueBlock:^(id returnValue) {
if (RESULT(returnValue)) {
SceneFilter *filterModel = [[SceneFilter alloc]initWithDictionary:returnValue[@"data"] error:nil];
......@@ -301,7 +301,7 @@
- (void)getSceneLibrarydatas:(SceneCondition *)condition isRemove:(BOOL)remove
{
WS(weakSelf);
[[NetworkRequestClassManager manager] networkRequestWithURL:SERVERREQUESTURL(SCENELIST) withRequestType:ZERO withParameter:condition withReturnValueBlock:^(id returnValue) {
[HTTP networkRequestWithURL:SERVERREQUESTURL(SCENELIST) withRequestType:ZERO withParameter:condition withReturnValueBlock:^(id returnValue) {
weakSelf.sceneOrProductClollectionView.emptyDataSetSource = weakSelf;
[weakSelf endRefreshingForTableView:weakSelf.sceneOrProductClollectionView];
......@@ -378,7 +378,7 @@
- (void)getScreeningdatasisRemoveArray:(BOOL)remove
{
WS(weakSelf);
[[NetworkRequestClassManager manager] networkWithDictionaryRequestWithURL:SERVERREQUESTURL(PRODUCTSCREENING) withRequestType:ONE withParameter:nil withReturnValueBlock:^(id returnValue) {
[HTTP networkWithDictionaryRequestWithURL:SERVERREQUESTURL(PRODUCTSCREENING) withRequestType:ONE withParameter:nil withReturnValueBlock:^(id returnValue) {
if (RESULT(returnValue)) {
......@@ -511,7 +511,7 @@
- (void)getGoodsListdatas:(GoodsCondition *)conditon returnResponse:(void(^)(GoodsResponse *))finish
{
WS(weakSelf);
[[NetworkRequestClassManager manager] networkRequestWithURL:SERVERREQUESTURL(PRODUCTLIST) withRequestType:ZERO withParameter:conditon withReturnValueBlock:^(id returnValue) {
[HTTP networkRequestWithURL:SERVERREQUESTURL(PRODUCTLIST) withRequestType:ZERO withParameter:conditon withReturnValueBlock:^(id returnValue) {
[weakSelf endRefreshingForTableView:weakSelf.sceneOrProductClollectionView];
if (RESULT(returnValue)) {
......
......@@ -32,7 +32,7 @@
[self dismissViewControllerAnimated:YES completion:nil];
[XBLoadingView showHUDViewWithDefault];
NSString *shareOrderString = [NSString stringWithFormat:@"%@/%@",SHAREORDERBILL,self.orderBillNumber];
[[NetworkRequestClassManager manager] networkWithDictionaryRequestWithURL:SERVERREQUESTURL(shareOrderString) withRequestType:ZERO withParameter:nil withReturnValueBlock:^(id returnValue) {
[HTTP networkWithDictionaryRequestWithURL:SERVERREQUESTURL(shareOrderString) withRequestType:ZERO withParameter:nil withReturnValueBlock:^(id returnValue) {
[XBLoadingView hideHUDViewWithDefault];
if (RESULT(returnValue)) {
......@@ -53,7 +53,7 @@
NSString *goodsID = [self.goodsIds substringToIndex:[self.goodsIds length]-1];
NSDictionary *parameterDict = [NSDictionary dictionaryWithObjectsAndKeys:[goodsID substringToIndex:self.goodsIds.length-1],@"goodsIds",@"",@"title",@"",@"remark",nil];
XBLoadingView *progressView = [XBLoadingView showHUDViewProgressLabel:@"上传图片中"];
[[NetworkRequestClassManager manager] uploadImageWithURL:SERVERREQUESTURL(SHARE) withRequestType:ZERO withImageDatas:imageData withParameter:parameterDict withReturnValueBlock:^(id returnValue) {
[HTTP uploadImageWithURL:SERVERREQUESTURL(SHARE) withRequestType:ZERO withImageDatas:imageData withParameter:parameterDict withReturnValueBlock:^(id returnValue) {
if (RESULT(returnValue)) {
NSString *shareWeb = returnValue[@"data"][@"url"];
......
......@@ -255,7 +255,7 @@
shopCar.goodsId = [goodsIds substringToIndex:goodsIds.length-1];
shopCar.count = [goodsCounts substringToIndex:goodsCounts.length-1];
WS(weakSelf);
[[NetworkRequestClassManager manager] networkRequestWithURL:SERVERREQUESTURL(ADDSHOPPINGBAG) withRequestType:ZERO withParameter:shopCar withReturnValueBlock:^(id returnValue) {
[HTTP networkRequestWithURL:SERVERREQUESTURL(ADDSHOPPINGBAG) withRequestType:ZERO withParameter:shopCar withReturnValueBlock:^(id returnValue) {
[XBLoadingView hideHUDViewWithDefault];
if (RESULT(returnValue)) {
......@@ -305,7 +305,7 @@
//商品数量
NSString *goodsNumberString = [NSString stringWithFormat:@"%ld",(long)goodsNumber];
WS(weakSelf);
[[NetworkRequestClassManager manager] networkWithDictionaryRequestWithURL:[NSString stringWithFormat:@"%@%@/%@/%@/%@",SERVERREQUESTURL(CHANGESHOPPINGBAGNUMBERPRICE),carid,goodsis,costpriceString,goodsNumberString] withRequestType:ONE withParameter:nil withReturnValueBlock:^(id returnValue) {
[HTTP networkWithDictionaryRequestWithURL:[NSString stringWithFormat:@"%@%@/%@/%@/%@",SERVERREQUESTURL(CHANGESHOPPINGBAGNUMBERPRICE),carid,goodsis,costpriceString,goodsNumberString] withRequestType:ONE withParameter:nil withReturnValueBlock:^(id returnValue) {
[XBLoadingView hideHUDViewWithDefault];
result(returnValue);//提供是否支持修改的参数
......
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