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

优化代码

parent 1cb9debf
...@@ -116,7 +116,7 @@ ...@@ -116,7 +116,7 @@
{ {
[XBLoadingView showHUDViewWithDefault]; [XBLoadingView showHUDViewWithDefault];
WS(weakSelf); 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.emptyDataSetSource = weakSelf;
weakSelf.allCustomerTableview.emptyDataSetDelegate = weakSelf; weakSelf.allCustomerTableview.emptyDataSetDelegate = weakSelf;
......
...@@ -177,7 +177,7 @@ ...@@ -177,7 +177,7 @@
{ {
WS(weakSelf); WS(weakSelf);
[XBLoadingView showHUDViewWithDefault]; [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]; [XBLoadingView hideHUDViewWithDefault];
[weakSelf endRefreshingForTableView:weakSelf.announcementTableView]; [weakSelf endRefreshingForTableView:weakSelf.announcementTableView];
......
...@@ -101,7 +101,7 @@ ...@@ -101,7 +101,7 @@
{ {
WS(weakSelf); WS(weakSelf);
[XBLoadingView showHUDViewWithDefault];; [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]; [XBLoadingView hideHUDViewWithDefault];
if (RESULT(returnValue)) { if (RESULT(returnValue)) {
...@@ -129,7 +129,7 @@ ...@@ -129,7 +129,7 @@
WS(weakSelf); WS(weakSelf);
NSString *url = [NSString stringWithFormat:SERVERREQUESTURL(READANNOUNCEMENT),self.announcementEntity.fid,[Shoppersmanager manager].Shoppers.employee.departid,[Shoppersmanager manager].Shoppers.employee.fid,[[NSDate date] httpParameterString]]; 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]; 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 (RESULT(returnValue)) {
if (weakSelf.readBlock) { if (weakSelf.readBlock) {
......
...@@ -133,7 +133,7 @@ ...@@ -133,7 +133,7 @@
WS(weakSelf); WS(weakSelf);
[XBLoadingView showHUDViewWithDefault]; [XBLoadingView showHUDViewWithDefault];
NSLog(@"%@",[[self.prizeBill toDictionary] JSONString]); 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]; [XBLoadingView hideHUDViewWithDefault];
if (RESULT(returnValue)) { if (RESULT(returnValue)) {
......
...@@ -91,7 +91,7 @@ ...@@ -91,7 +91,7 @@
NSString *type = [MyBankClass returnBankName:entity.bankAccount]; NSString *type = [MyBankClass returnBankName:entity.bankAccount];
WS(weakSelf); WS(weakSelf);
[XBLoadingView showHUDViewWithDefault]; [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]; [XBLoadingView hideHUDViewWithDefault];
if (RESULT(returnValue)) { if (RESULT(returnValue)) {
......
...@@ -36,7 +36,7 @@ ...@@ -36,7 +36,7 @@
[XBLoadingView showHUDViewWithDefault]; [XBLoadingView showHUDViewWithDefault];
//发送验证码 //发送验证码
NSString *urlString = [NSString stringWithFormat:SERVERREQUESTURL(SENDSMSBANK),self.bankEntity.phoneNumber,[Shoppersmanager manager].Shoppers.employee.userName]; 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]; [XBLoadingView hideHUDViewWithDefault];
if (RESULT(returnValue)) { if (RESULT(returnValue)) {
[XBLoadingView showHUDViewWithSuccessText:@"发送成功" completeBlock:^{ [XBLoadingView showHUDViewWithSuccessText:@"发送成功" completeBlock:^{
...@@ -76,7 +76,7 @@ ...@@ -76,7 +76,7 @@
entity.smsCode = self.verificationCodeTextField.text; entity.smsCode = self.verificationCodeTextField.text;
entity.bankCardType = self.bankType; entity.bankCardType = self.bankType;
WS(weakSelf); 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)) { if (RESULT(returnValue)) {
[XBLoadingView showHUDViewWithSuccessText:@"绑定成功" completeBlock:^{ [XBLoadingView showHUDViewWithSuccessText:@"绑定成功" completeBlock:^{
......
...@@ -98,7 +98,7 @@ ...@@ -98,7 +98,7 @@
{ {
WS(weakSelf); WS(weakSelf);
[XBLoadingView showHUDViewWithDefault]; [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]; [XBLoadingView hideHUDViewWithDefault];
weakSelf.beenUseCardCollectionView.emptyDataSetSource = self; weakSelf.beenUseCardCollectionView.emptyDataSetSource = self;
...@@ -127,7 +127,7 @@ ...@@ -127,7 +127,7 @@
{ {
WS(weakSelf); WS(weakSelf);
[XBLoadingView showHUDViewWithDefault]; [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]; [XBLoadingView hideHUDViewWithDefault];
if (RESULT(returnValue)) { if (RESULT(returnValue)) {
......
...@@ -116,7 +116,7 @@ ...@@ -116,7 +116,7 @@
WS(weakSelf); WS(weakSelf);
[XBLoadingView showHUDViewWithDefault]; [XBLoadingView showHUDViewWithDefault];
NSLog(@"%@",[self.requestModel toDictionary]); 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]; [XBLoadingView hideHUDViewWithDefault];
weakSelf.dontUseCardCollectionView.emptyDataSetSource = weakSelf; weakSelf.dontUseCardCollectionView.emptyDataSetSource = weakSelf;
...@@ -241,7 +241,7 @@ ...@@ -241,7 +241,7 @@
WS(weakSelf); WS(weakSelf);
NSData *data = UIImageJPEGRepresentation(image, 0.5); NSData *data = UIImageJPEGRepresentation(image, 0.5);
XBLoadingView *progressView = [XBLoadingView showHUDViewProgressLabel:@"上传小票中"]; 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)) { if (RESULT(returnValue)) {
[weakSelf activationJDECard:returnValue[@"data"]]; [weakSelf activationJDECard:returnValue[@"data"]];
...@@ -270,7 +270,7 @@ ...@@ -270,7 +270,7 @@
{ {
WS(weakSelf); WS(weakSelf);
[XBLoadingView showHUDViewWithDefault]; [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]; [XBLoadingView hideHUDViewWithDefault];
if (RESULT(returnValue)) { if (RESULT(returnValue)) {
......
...@@ -62,7 +62,7 @@ ...@@ -62,7 +62,7 @@
{ {
WS(weakSelf); WS(weakSelf);
[XBLoadingView showHUDViewWithDefaultWithView:self.view]; [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.emptyDataSetSource = weakSelf;
weakSelf.cardCollectionView.emptyDataSetDelegate = weakSelf; weakSelf.cardCollectionView.emptyDataSetDelegate = weakSelf;
...@@ -92,7 +92,7 @@ ...@@ -92,7 +92,7 @@
{ {
WS(weakSelf); WS(weakSelf);
[XBLoadingView showHUDViewWithDefaultWithView:self.view]; [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]; [XBLoadingView hideHUDViewWithDefaultWithView:weakSelf.view];
if (RESULT(returnValue)) { if (RESULT(returnValue)) {
......
...@@ -80,7 +80,7 @@ ...@@ -80,7 +80,7 @@
//修改密码 //修改密码
WS(weakSelf); 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]; [XBLoadingView hideHUDViewWithDefault];
if (RESULT(returnValue)) { if (RESULT(returnValue)) {
......
...@@ -75,7 +75,7 @@ ...@@ -75,7 +75,7 @@
{ {
[XBLoadingView showHUDViewWithDefault]; [XBLoadingView showHUDViewWithDefault];
WS(weakSelf); 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.emptyDataSetSource = weakSelf;
weakSelf.clientShoppingCarTableView.emptyDataSetDelegate = weakSelf; weakSelf.clientShoppingCarTableView.emptyDataSetDelegate = weakSelf;
......
...@@ -154,7 +154,7 @@ ...@@ -154,7 +154,7 @@
{ {
WS(weakSelf); WS(weakSelf);
[XBLoadingView showHUDViewWithDefault]; [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.emptyDataSetSource = weakSelf;
weakSelf.informationTableview.emptyDataSetDelegate = weakSelf; weakSelf.informationTableview.emptyDataSetDelegate = weakSelf;
...@@ -419,7 +419,7 @@ ...@@ -419,7 +419,7 @@
WS(weakSelf); WS(weakSelf);
NSData *data = UIImageJPEGRepresentation(image, 0.5); NSData *data = UIImageJPEGRepresentation(image, 0.5);
XBLoadingView *progressView = [XBLoadingView showHUDViewProgressLabel:@"上传头像中"]; 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)) { if (RESULT(returnValue)) {
[weakSelf modifyshoppersInformation:returnValue[@"data"] complete:^{ [weakSelf modifyshoppersInformation:returnValue[@"data"] complete:^{
...@@ -451,7 +451,7 @@ ...@@ -451,7 +451,7 @@
MyclientEntityModel *customerEntity = nil; MyclientEntityModel *customerEntity = nil;
customerEntity = [Customermanager manager].model; customerEntity = [Customermanager manager].model;
customerEntity.picture = headerurl; 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]; [XBLoadingView hideHUDViewWithDefault];
if (RESULT(returnValue)) { if (RESULT(returnValue)) {
...@@ -488,7 +488,7 @@ ...@@ -488,7 +488,7 @@
- (void)SetupUserRequest - (void)SetupUserRequest
{ {
MyclientEntityModel *model = [Customermanager manager].model; 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)) { if (RESULT(returnValue)) {
NSLog(@"写入客户访问时间成功"); NSLog(@"写入客户访问时间成功");
...@@ -581,7 +581,7 @@ ...@@ -581,7 +581,7 @@
} }
WS(weakSelf); WS(weakSelf);
[XBLoadingView showHUDViewWithDefault]; [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]; [XBLoadingView hideHUDViewWithDefault];
if (RESULT(returnValue)) { if (RESULT(returnValue)) {
...@@ -631,7 +631,7 @@ ...@@ -631,7 +631,7 @@
address.name = self.customerNameField.text; address.name = self.customerNameField.text;
address.miblephone = self.phoneNumberField.text; address.miblephone = self.phoneNumberField.text;
address.address = self.customerAddress.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)) { if (RESULT(returnValue)) {
......
...@@ -142,7 +142,7 @@ ...@@ -142,7 +142,7 @@
{ {
[XBLoadingView showHUDViewWithDefault]; [XBLoadingView showHUDViewWithDefault];
WS(weakSelf); 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.emptyDataSetSource = weakSelf;
weakSelf.customerOrderTableView.emptyDataSetDelegate = weakSelf; weakSelf.customerOrderTableView.emptyDataSetDelegate = weakSelf;
...@@ -316,7 +316,7 @@ ...@@ -316,7 +316,7 @@
[XBLoadingView showHUDViewWithDefault]; [XBLoadingView showHUDViewWithDefault];
OrderBill *model = [weakSelf.datasArray objectAtIndex_opple:cellindex]; 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]; [XBLoadingView hideHUDViewWithDefault];
if (RESULT(returnValue)) { if (RESULT(returnValue)) {
......
...@@ -103,7 +103,7 @@ ...@@ -103,7 +103,7 @@
WS(weakSelf); WS(weakSelf);
[XBLoadingView showHUDViewWithDefault];; [XBLoadingView showHUDViewWithDefault];;
NSString *url = [NSString stringWithFormat:SERVERREQUESTURL(INTEGRALQUERY),[Shoppersmanager manager].Shoppers.employee.fid]; 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]; [XBLoadingView hideHUDViewWithDefault];
[weakSelf endRefreshingForTableView:weakSelf.integralDetailsTableView]; [weakSelf endRefreshingForTableView:weakSelf.integralDetailsTableView];
...@@ -136,7 +136,7 @@ ...@@ -136,7 +136,7 @@
WS(weakSelf); WS(weakSelf);
[XBLoadingView showHUDViewWithDefault];; [XBLoadingView showHUDViewWithDefault];;
NSString *url = [NSString stringWithFormat:SERVERREQUESTURL(ALLEXCHANGERECORD),[Shoppersmanager manager].Shoppers.employee.fid]; 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]; [XBLoadingView hideHUDViewWithDefault];
[weakSelf endRefreshingForTableView:weakSelf.integralDetailsTableView]; [weakSelf endRefreshingForTableView:weakSelf.integralDetailsTableView];
......
...@@ -106,7 +106,7 @@ ...@@ -106,7 +106,7 @@
{ {
WS(weakSelf); WS(weakSelf);
[XBLoadingView showHUDViewWithDefault]; [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]; [XBLoadingView hideHUDViewWithDefault];
if (RESULT(returnValue)) { if (RESULT(returnValue)) {
...@@ -231,7 +231,7 @@ ...@@ -231,7 +231,7 @@
reply.replyerId = [Shoppersmanager manager].Shoppers.employee.fid; reply.replyerId = [Shoppersmanager manager].Shoppers.employee.fid;
[XBLoadingView showHUDViewWithDefault]; [XBLoadingView showHUDViewWithDefault];
WS(weakSelf); 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]; [XBLoadingView hideHUDViewWithDefault];
if (RESULT(returnValue)) { if (RESULT(returnValue)) {
...@@ -291,7 +291,7 @@ ...@@ -291,7 +291,7 @@
} sureBlock:^{ } sureBlock:^{
[XBLoadingView showHUDViewWithDefault]; [XBLoadingView showHUDViewWithDefault];
WS(weakSelf); 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]; [XBLoadingView hideHUDViewWithDefault];
if (RESULT(returnValue)) { if (RESULT(returnValue)) {
[XBLoadingView showHUDViewWithSuccessText:@"删除成功" completeBlock:^{ [XBLoadingView showHUDViewWithSuccessText:@"删除成功" completeBlock:^{
...@@ -333,7 +333,7 @@ ...@@ -333,7 +333,7 @@
{ {
WS(weakSelf); WS(weakSelf);
[XBLoadingView showHUDViewWithDefault]; [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]; [XBLoadingView hideHUDViewWithDefault];
if (RESULT(returnValue)) { if (RESULT(returnValue)) {
[weakSelf getPostDetailAction:YES]; [weakSelf getPostDetailAction:YES];
...@@ -353,7 +353,7 @@ ...@@ -353,7 +353,7 @@
[XBLoadingView showHUDViewWithDefault]; [XBLoadingView showHUDViewWithDefault];
NSString *url = [NSString stringWithFormat:SERVERREQUESTURL(PRAISE),self.topicDetail.fid,!sender.selected?@"true":@"false"]; NSString *url = [NSString stringWithFormat:SERVERREQUESTURL(PRAISE),self.topicDetail.fid,!sender.selected?@"true":@"false"];
WS(weakSelf); 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]; [XBLoadingView hideHUDViewWithDefault];
if (RESULT(returnValue)) { if (RESULT(returnValue)) {
sender.selected = !sender.selected; sender.selected = !sender.selected;
......
...@@ -98,7 +98,7 @@ ...@@ -98,7 +98,7 @@
{ {
[XBLoadingView showHUDViewWithDefault]; [XBLoadingView showHUDViewWithDefault];
WS(weakSelf); 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]; [XBLoadingView hideHUDViewWithDefault];
[weakSelf endRefreshingForTableView:weakSelf.classificationListTableView]; [weakSelf endRefreshingForTableView:weakSelf.classificationListTableView];
......
...@@ -51,7 +51,7 @@ ...@@ -51,7 +51,7 @@
{ {
WS(weakSelf); WS(weakSelf);
[XBLoadingView showHUDViewWithDefault];; [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]; [XBLoadingView hideHUDViewWithDefault];
[weakSelf endRefreshingForTableView:weakSelf.forumTableView]; [weakSelf endRefreshingForTableView:weakSelf.forumTableView];
......
...@@ -455,7 +455,7 @@ ...@@ -455,7 +455,7 @@
topic.attachments = (NSArray<TOAttachmentEntity>*)attachments; topic.attachments = (NSArray<TOAttachmentEntity>*)attachments;
WS(weakSelf); WS(weakSelf);
[XBLoadingView showHUDViewWithDefault]; [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]; [XBLoadingView hideHUDViewWithDefault];
if (RESULT(returnValue)) { if (RESULT(returnValue)) {
......
...@@ -77,7 +77,7 @@ ...@@ -77,7 +77,7 @@
WS(weakSelf); WS(weakSelf);
[XBLoadingView showHUDViewWithDefault];; [XBLoadingView showHUDViewWithDefault];;
NSString *url = [NSString stringWithFormat:SERVERREQUESTURL(INTEGRALQUERY),[Shoppersmanager manager].Shoppers.employee.fid]; 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]; [XBLoadingView hideHUDViewWithDefault];
if (RESULT(returnValue)) { if (RESULT(returnValue)) {
......
...@@ -59,7 +59,7 @@ ...@@ -59,7 +59,7 @@
{ {
WS(weakSelf); WS(weakSelf);
[XBLoadingView showHUDViewWithDefault];; [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]; [XBLoadingView hideHUDViewWithDefault];
if (RESULT(returnValue)) { if (RESULT(returnValue)) {
...@@ -231,7 +231,7 @@ ...@@ -231,7 +231,7 @@
[XBLoadingView showHUDViewWithDefault]; [XBLoadingView showHUDViewWithDefault];
WS(weakSelf); WS(weakSelf);
NSLog(@"%@",[[studyResult toDictionary] JSONString]); 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]; [XBLoadingView hideHUDViewWithDefault];
if (RESULT(returnValue)) { if (RESULT(returnValue)) {
...@@ -264,7 +264,7 @@ ...@@ -264,7 +264,7 @@
}else { }else {
WS(weakSelf); WS(weakSelf);
[XBLoadingView showHUDViewWithDefault]; [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]; [XBLoadingView hideHUDViewWithDefault];
if (RESULT(returnValue)) { if (RESULT(returnValue)) {
AssessmentQualifiedViewController *qualified = [[[weakSelf class] getLearningCenterStoryboardClass] instantiateViewControllerWithIdentifier:@"AssessmentQualifiedViewController"]; AssessmentQualifiedViewController *qualified = [[[weakSelf class] getLearningCenterStoryboardClass] instantiateViewControllerWithIdentifier:@"AssessmentQualifiedViewController"];
......
...@@ -146,7 +146,7 @@ ...@@ -146,7 +146,7 @@
page.rows = 9999; page.rows = 9999;
studyListModel.page = page; studyListModel.page = page;
[XBLoadingView showHUDViewWithDefault]; [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]; [XBLoadingView hideHUDViewWithDefault];
if (RESULT(returnValue)) { if (RESULT(returnValue)) {
...@@ -212,7 +212,7 @@ ...@@ -212,7 +212,7 @@
playTimeEntity.employeeId = [Shoppersmanager manager].Shoppers.employee.fid; playTimeEntity.employeeId = [Shoppersmanager manager].Shoppers.employee.fid;
playTimeEntity.playTime = [NSString stringWithFormat:@"%.0lf",playTime]; playTimeEntity.playTime = [NSString stringWithFormat:@"%.0lf",playTime];
playTimeEntity.playPercent = [NSString stringWithFormat:@"%.2lf",percent]; 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)) { if (RESULT(returnValue)) {
attachment.playTime = playTimeEntity.playTime; attachment.playTime = playTimeEntity.playTime;
...@@ -255,7 +255,7 @@ ...@@ -255,7 +255,7 @@
dispatch_group_enter(group); dispatch_group_enter(group);
[XBLoadingView showHUDViewWithDefault]; [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); dispatch_group_leave(group);
if (RESULT(returnValue)) { if (RESULT(returnValue)) {
...@@ -269,7 +269,7 @@ ...@@ -269,7 +269,7 @@
}]; }];
// 任务二,获得学习积分 // 任务二,获得学习积分
dispatch_group_enter(group); 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); dispatch_group_leave(group);
if (RESULT(returnValue)) { if (RESULT(returnValue)) {
......
...@@ -43,7 +43,7 @@ ...@@ -43,7 +43,7 @@
{ {
WS(weakSelf); WS(weakSelf);
[XBLoadingView showHUDViewWithDefault];; [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]; [XBLoadingView hideHUDViewWithDefault];
if (RESULT(returnValue)) { if (RESULT(returnValue)) {
......
...@@ -51,7 +51,7 @@ ...@@ -51,7 +51,7 @@
{ {
WS(weakSelf); WS(weakSelf);
[XBLoadingView showHUDViewWithDefault]; [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]; [XBLoadingView hideHUDViewWithDefault];
if (RESULT(returnValue)) { if (RESULT(returnValue)) {
weakSelf.emigrated = [[TOPassLevelEntity alloc] initWithDictionary:returnValue[@"data"] error:nil]; weakSelf.emigrated = [[TOPassLevelEntity alloc] initWithDictionary:returnValue[@"data"] error:nil];
...@@ -263,7 +263,7 @@ ...@@ -263,7 +263,7 @@
} }
[XBLoadingView showHUDViewWithDefault]; [XBLoadingView showHUDViewWithDefault];
WS(weakSelf); 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]; [XBLoadingView hideHUDViewWithDefault];
if (RESULT(returnValue)) { if (RESULT(returnValue)) {
...@@ -300,7 +300,7 @@ ...@@ -300,7 +300,7 @@
WS(weakSelf); WS(weakSelf);
[XBLoadingView showHUDViewWithDefault]; [XBLoadingView showHUDViewWithDefault];
NSString *url = [NSString stringWithFormat:SERVERREQUESTURL(GETINTEGRAL),RECRUITTHROUGH]; 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]; [XBLoadingView hideHUDViewWithDefault];
if (RESULT(returnValue)) { if (RESULT(returnValue)) {
finish.state = ONE; finish.state = ONE;
......
...@@ -42,7 +42,7 @@ ...@@ -42,7 +42,7 @@
page.rows = KROWS; page.rows = KROWS;
emigrated.page = page; emigrated.page = page;
[XBLoadingView showHUDViewWithDefault];; [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]; [XBLoadingView hideHUDViewWithDefault];
if (RESULT(returnValue)) { if (RESULT(returnValue)) {
......
...@@ -165,7 +165,7 @@ ...@@ -165,7 +165,7 @@
login.username = self.userName.text; login.username = self.userName.text;
login.password = self.passWord.text; login.password = self.passWord.text;
WS(weakSelf); 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]; [XBLoadingView hideHUDViewWithDefault];
if (RESULT(returnValue)) { if (RESULT(returnValue)) {
...@@ -289,7 +289,7 @@ ...@@ -289,7 +289,7 @@
} }
[XBLoadingView showHUDViewWithDefault]; [XBLoadingView showHUDViewWithDefault];
NSString *urlString = [NSString stringWithFormat:SERVERREQUESTURL(SENDSMS),inputPhoneNumber,self.identityView.userName.text]; 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]; [XBLoadingView hideHUDViewWithDefault];
if (RESULT(returnValue)) { if (RESULT(returnValue)) {
[XBLoadingView showHUDViewWithText:@"发送验证码成功"]; [XBLoadingView showHUDViewWithText:@"发送验证码成功"];
...@@ -379,7 +379,7 @@ ...@@ -379,7 +379,7 @@
passwrod.username = self.userName.text; passwrod.username = self.userName.text;
passwrod.smsCode = self.identityView.verificationCode.text; passwrod.smsCode = self.identityView.verificationCode.text;
WS(weakSelf); 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]; [XBLoadingView hideHUDViewWithDefault];
if (RESULT(returnValue)) { if (RESULT(returnValue)) {
...@@ -424,7 +424,7 @@ ...@@ -424,7 +424,7 @@
//获取服务端版本大小 //获取服务端版本大小
WS(weakSelf); WS(weakSelf);
NSString *string = [NSString stringWithFormat:@"/employee/getUpgrade?apptype=IOS&version=%@",version]; 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)) { if (RESULT(returnValue)) {
NSDictionary *dict = returnValue[@"data"]; NSDictionary *dict = returnValue[@"data"];
......
...@@ -128,7 +128,7 @@ ...@@ -128,7 +128,7 @@
{ {
WS(weakSelf); WS(weakSelf);
[XBLoadingView showHUDViewWithDefaultWithView:self.view]; [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 endRefreshingForTableView:weakSelf.drawDetailsTableView];
weakSelf.drawDetailsTableView.emptyDataSetSource = weakSelf; weakSelf.drawDetailsTableView.emptyDataSetSource = weakSelf;
......
...@@ -82,7 +82,7 @@ ...@@ -82,7 +82,7 @@
{ {
WS(weakSelf); WS(weakSelf);
[XBLoadingView showHUDViewWithDefault]; [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]; [XBLoadingView hideHUDViewWithDefault];
[weakSelf endRefreshingForTableView:weakSelf.meesageTableView]; [weakSelf endRefreshingForTableView:weakSelf.meesageTableView];
...@@ -105,7 +105,7 @@ ...@@ -105,7 +105,7 @@
{ {
WS(weakSelf); WS(weakSelf);
[XBLoadingView showHUDViewWithDefault]; [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]; [XBLoadingView hideHUDViewWithDefault];
if (RESULT(returnValue)) { if (RESULT(returnValue)) {
......
...@@ -75,7 +75,7 @@ ...@@ -75,7 +75,7 @@
{ {
[XBLoadingView showHUDViewWithDefault]; [XBLoadingView showHUDViewWithDefault];
WS(weakSelf); 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.emptyDataSetSource = weakSelf;
weakSelf.orderRecordTableView.emptyDataSetDelegate = weakSelf; weakSelf.orderRecordTableView.emptyDataSetDelegate = weakSelf;
......
...@@ -192,7 +192,7 @@ NSString *const PROMOTIONALSTRING = @"促销信息"; ...@@ -192,7 +192,7 @@ NSString *const PROMOTIONALSTRING = @"促销信息";
[XBLoadingView showHUDViewWithDefault]; [XBLoadingView showHUDViewWithDefault];
WS(weakSelf); 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); dispatch_group_leave(group);
if (RESULT(returnValue)) { if (RESULT(returnValue)) {
...@@ -209,7 +209,7 @@ NSString *const PROMOTIONALSTRING = @"促销信息"; ...@@ -209,7 +209,7 @@ NSString *const PROMOTIONALSTRING = @"促销信息";
if (self.isShowPayButton) { if (self.isShowPayButton) {
// 查询实时促销信息 // 查询实时促销信息
dispatch_group_enter(group); 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); dispatch_group_leave(group);
[XBLoadingView hideHUDViewWithDefault]; [XBLoadingView hideHUDViewWithDefault];
...@@ -254,7 +254,7 @@ NSString *const PROMOTIONALSTRING = @"促销信息"; ...@@ -254,7 +254,7 @@ NSString *const PROMOTIONALSTRING = @"促销信息";
}else { }else {
// 查询历史促销信息 // 查询历史促销信息
dispatch_group_enter(group); 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); dispatch_group_leave(group);
[XBLoadingView hideHUDViewWithDefault]; [XBLoadingView hideHUDViewWithDefault];
...@@ -347,7 +347,7 @@ NSString *const PROMOTIONALSTRING = @"促销信息"; ...@@ -347,7 +347,7 @@ NSString *const PROMOTIONALSTRING = @"促销信息";
page.page = ZERO; page.page = ZERO;
page.rows = ONE; page.rows = ONE;
queryDrawState.page = page; 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); dispatch_group_leave(group);
if (RESULT(returnValue)) { if (RESULT(returnValue)) {
NSDictionary *dict = [returnValue[@"data"][@"list"] firstObject]; NSDictionary *dict = [returnValue[@"data"][@"list"] firstObject];
...@@ -532,7 +532,7 @@ NSString *const PROMOTIONALSTRING = @"促销信息"; ...@@ -532,7 +532,7 @@ NSString *const PROMOTIONALSTRING = @"促销信息";
{ {
WS(weakSelf); WS(weakSelf);
[XBLoadingView showHUDViewWithDefault]; [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]; [XBLoadingView hideHUDViewWithDefault];
if (RESULT(returnValue)) { if (RESULT(returnValue)) {
...@@ -1027,7 +1027,7 @@ NSString *const PROMOTIONALSTRING = @"促销信息"; ...@@ -1027,7 +1027,7 @@ NSString *const PROMOTIONALSTRING = @"促销信息";
[alertVC addAction:[UIAlertAction actionWithTitle:@"确认" style:UIAlertActionStyleDestructive handler:^(UIAlertAction * _Nonnull action) [alertVC addAction:[UIAlertAction actionWithTitle:@"确认" style:UIAlertActionStyleDestructive handler:^(UIAlertAction * _Nonnull action)
{ {
[XBLoadingView showHUDViewWithDefault]; [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]; [XBLoadingView hideHUDViewWithDefault];
if (RESULT(returnValue)) { if (RESULT(returnValue)) {
[XBLoadingView showHUDViewWithSuccessText:@"撤销成功" completeBlock:nil]; [XBLoadingView showHUDViewWithSuccessText:@"撤销成功" completeBlock:nil];
......
...@@ -98,7 +98,7 @@ ...@@ -98,7 +98,7 @@
{ {
WS(weakSelf); WS(weakSelf);
[XBLoadingView showHUDViewWithDefaultWithView:self.view]; [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.emptyDataSetSource = weakSelf;
weakSelf.paymentsTableView.emptyDataSetDelegate = weakSelf; weakSelf.paymentsTableView.emptyDataSetDelegate = weakSelf;
......
...@@ -172,7 +172,7 @@ ...@@ -172,7 +172,7 @@
employ.employee.birthday = [NSString stringWithFormat:@"%@ 00:00:00",self.informationArray[1][2]]; employ.employee.birthday = [NSString stringWithFormat:@"%@ 00:00:00",self.informationArray[1][2]];
employ.employee.mobilePhone = self.informationArray[1][3]; employ.employee.mobilePhone = self.informationArray[1][3];
employ.employee.isComplete = YES; 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]; [XBLoadingView hideHUDViewWithDefault];
if (RESULT(returnValue)) { if (RESULT(returnValue)) {
......
...@@ -52,7 +52,7 @@ ...@@ -52,7 +52,7 @@
WS(weakSelf); WS(weakSelf);
[XBLoadingView showHUDViewWithDefault];; [XBLoadingView showHUDViewWithDefault];;
NSString *url = [NSString stringWithFormat:SERVERREQUESTURL(PRIZEBILLDETAILS),self.prizeBillNumber]; 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]; [XBLoadingView hideHUDViewWithDefault];
if (RESULT(returnValue)) { if (RESULT(returnValue)) {
......
...@@ -88,7 +88,7 @@ ...@@ -88,7 +88,7 @@
dispatch_group_t group = dispatch_group_create(); dispatch_group_t group = dispatch_group_create();
dispatch_group_enter(group); 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); dispatch_group_leave(group);
[weakSelf endRefreshingForTableView:weakSelf.prizeListCollectionView]; [weakSelf endRefreshingForTableView:weakSelf.prizeListCollectionView];
weakSelf.prizeListCollectionView.emptyDataSetSource = weakSelf; weakSelf.prizeListCollectionView.emptyDataSetSource = weakSelf;
...@@ -113,7 +113,7 @@ ...@@ -113,7 +113,7 @@
}]; }];
//任务二 查询是否有兑换资格 //任务二 查询是否有兑换资格
dispatch_group_enter(group); 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); dispatch_group_leave(group);
if (RESULT(returnValue)) { if (RESULT(returnValue)) {
......
...@@ -91,7 +91,7 @@ ...@@ -91,7 +91,7 @@
WS(weakSelf); WS(weakSelf);
[XBLoadingView showHUDViewWithDefault]; [XBLoadingView showHUDViewWithDefault];
NSString *url = [NSString stringWithFormat:@"%@%@",SERVERREQUESTURL(GOODSDETAILS),_goodsID]; 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]; [XBLoadingView hideHUDViewWithDefault];
if (RESULT(returnValue)) { if (RESULT(returnValue)) {
...@@ -385,7 +385,7 @@ ...@@ -385,7 +385,7 @@
shopCar.count = self.headerView.goodsNumber.text; shopCar.count = self.headerView.goodsNumber.text;
WS(weakSelf); WS(weakSelf);
[XBLoadingView showHUDViewWithDefault]; [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]; [XBLoadingView hideHUDViewWithDefault];
if (RESULT(returnValue)) { if (RESULT(returnValue)) {
......
...@@ -158,7 +158,7 @@ ...@@ -158,7 +158,7 @@
- (void)getScreeningdatasisRemoveArray:(BOOL)remove - (void)getScreeningdatasisRemoveArray:(BOOL)remove
{ {
WS(weakSelf); 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 (RESULT(returnValue)) {
if (remove) { if (remove) {
...@@ -189,7 +189,7 @@ ...@@ -189,7 +189,7 @@
{ {
[XBLoadingView showHUDViewWithDefault]; [XBLoadingView showHUDViewWithDefault];
WS(weakSelf); 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.emptyDataSetSource = weakSelf;
weakSelf.productCollectionView.emptyDataSetDelegate = weakSelf; weakSelf.productCollectionView.emptyDataSetDelegate = weakSelf;
...@@ -343,7 +343,7 @@ ...@@ -343,7 +343,7 @@
{ {
WS(weakSelf); WS(weakSelf);
[XBLoadingView showHUDViewWithDefault]; [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]; [weakSelf endRefreshingForTableView:self.productCollectionView];
[XBLoadingView hideHUDViewWithDefault]; [XBLoadingView hideHUDViewWithDefault];
...@@ -715,7 +715,7 @@ ...@@ -715,7 +715,7 @@
shopCar.consumerId = [Customermanager manager].model.fid; shopCar.consumerId = [Customermanager manager].model.fid;
shopCar.goodsId = model.fid; shopCar.goodsId = model.fid;
shopCar.count = @"1"; 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)) { if (RESULT(returnValue)) {
response(); response();
}else }else
......
...@@ -58,7 +58,7 @@ ...@@ -58,7 +58,7 @@
withdrawal.billType = weakSelf.billType; withdrawal.billType = weakSelf.billType;
withdrawal.bankCardNumber = weakSelf.bankCardNumber; withdrawal.bankCardNumber = weakSelf.bankCardNumber;
NSLog(@"%@",[[withdrawal toDictionary] JSONString]); 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]; [XBLoadingView hideHUDViewWithDefault];
if (RESULT(returnValue)) { if (RESULT(returnValue)) {
weakSelf.applyUUID = returnValue[@"data"]; weakSelf.applyUUID = returnValue[@"data"];
...@@ -103,7 +103,7 @@ ...@@ -103,7 +103,7 @@
[XBLoadingView showHUDViewWithDefault]; [XBLoadingView showHUDViewWithDefault];
WS(weakSelf); WS(weakSelf);
NSString *urlString = [NSString stringWithFormat:@"%@/%@",WITHDRAWALPROGRESSDETAILS,self.applyUUID]; 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]; [XBLoadingView hideHUDViewWithDefault];
if (RESULT(returnValue)) { if (RESULT(returnValue)) {
TOApplyBillEntity *result = [[TOApplyBillEntity alloc]initWithDictionary:returnValue[@"data"] error:nil]; TOApplyBillEntity *result = [[TOApplyBillEntity alloc]initWithDictionary:returnValue[@"data"] error:nil];
......
...@@ -155,7 +155,7 @@ ...@@ -155,7 +155,7 @@
WS(weakSelf); WS(weakSelf);
[XBLoadingView showHUDViewWithDefault]; [XBLoadingView showHUDViewWithDefault];
NSString *url = [NSString stringWithFormat:@"%@/%@",REBATE,[Shoppersmanager manager].Shoppers.employee.fid]; 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]; [XBLoadingView hideHUDViewWithDefault];
if (RESULT(returnValue)) { if (RESULT(returnValue)) {
...@@ -273,7 +273,7 @@ ...@@ -273,7 +273,7 @@
[XBLoadingView showHUDViewWithDefault]; [XBLoadingView showHUDViewWithDefault];
WS(weakSelf); WS(weakSelf);
TOBankCardEntity *entity = self.resultEntity.bankCards[0]; 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]; [XBLoadingView hideHUDViewWithDefault];
if (RESULT(returnValue)) { if (RESULT(returnValue)) {
......
...@@ -140,7 +140,7 @@ ...@@ -140,7 +140,7 @@
- (void)getdatasAction - (void)getdatasAction
{ {
WS(weakSelf); 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)) { if (RESULT(returnValue)) {
weakSelf.filter = [[SceneFilter alloc]initWithDictionary:returnValue[@"data"] error:nil]; weakSelf.filter = [[SceneFilter alloc]initWithDictionary:returnValue[@"data"] error:nil];
...@@ -160,7 +160,7 @@ ...@@ -160,7 +160,7 @@
{ {
[XBLoadingView showHUDViewWithDefault]; [XBLoadingView showHUDViewWithDefault];
WS(weakSelf); 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.emptyDataSetSource = weakSelf;
weakSelf.seceneLibararyCollectionView.emptyDataSetDelegate = weakSelf; weakSelf.seceneLibararyCollectionView.emptyDataSetDelegate = weakSelf;
......
...@@ -153,7 +153,7 @@ ...@@ -153,7 +153,7 @@
{ {
WS(weakSelf); WS(weakSelf);
[XBLoadingView showHUDViewWithDefault]; [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]; [XBLoadingView hideHUDViewWithDefault];
if (RESULT(returnValue)) { if (RESULT(returnValue)) {
......
...@@ -471,7 +471,7 @@ ...@@ -471,7 +471,7 @@
[XBLoadingView showHUDViewWithDefault]; [XBLoadingView showHUDViewWithDefault];
WS(weakSelf); WS(weakSelf);
NSLog(@"%@",[order toDictionary]); 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]; [XBLoadingView hideHUDViewWithDefault];
if (RESULT(returnValue)) { if (RESULT(returnValue)) {
......
...@@ -186,7 +186,7 @@ ...@@ -186,7 +186,7 @@
address.address = self.detailsAddress.text; address.address = self.detailsAddress.text;
[XBLoadingView showHUDViewWithDefault]; [XBLoadingView showHUDViewWithDefault];
WS(weakSelf); 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]; [XBLoadingView hideHUDViewWithDefault];
if (RESULT(returnValue)) { if (RESULT(returnValue)) {
...@@ -239,7 +239,7 @@ ...@@ -239,7 +239,7 @@
address.fid = self.model.fid; address.fid = self.model.fid;
[XBLoadingView showHUDViewWithDefault]; [XBLoadingView showHUDViewWithDefault];
WS(weakSelf); 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]; [XBLoadingView hideHUDViewWithDefault];
if (RESULT(returnValue)) { if (RESULT(returnValue)) {
...@@ -295,7 +295,7 @@ ...@@ -295,7 +295,7 @@
{ {
[XBLoadingView showHUDViewWithDefault]; [XBLoadingView showHUDViewWithDefault];
WS(weakSelf); 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]; [XBLoadingView hideHUDViewWithDefault];
if (RESULT(returnValue)) { if (RESULT(returnValue)) {
......
...@@ -112,7 +112,7 @@ ...@@ -112,7 +112,7 @@
{ {
[XBLoadingView showHUDViewWithDefault]; [XBLoadingView showHUDViewWithDefault];
WS(weakSelf); 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]; [XBLoadingView hideHUDViewWithDefault];
if (RESULT(returnValue)) { if (RESULT(returnValue)) {
...@@ -393,7 +393,7 @@ ...@@ -393,7 +393,7 @@
order.orderdetailList = (NSArray<TOOrderdetailEntity> *)goodidArr; order.orderdetailList = (NSArray<TOOrderdetailEntity> *)goodidArr;
[XBLoadingView showHUDViewWithDefault]; [XBLoadingView showHUDViewWithDefault];
WS(weakSelf); 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]; [XBLoadingView hideHUDViewWithDefault];
if (RESULT(returnValue)) { if (RESULT(returnValue)) {
//商品购物车id //商品购物车id
......
...@@ -237,7 +237,7 @@ ...@@ -237,7 +237,7 @@
shopcarNumber.dp = Newpage; shopcarNumber.dp = Newpage;
[XBLoadingView showHUDViewWithDefault]; [XBLoadingView showHUDViewWithDefault];
WS(weakSelf); 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.shoppingTableview.emptyDataSetSource = weakSelf;
[weakSelf endRefreshingForTableView:weakSelf.shoppingTableview]; [weakSelf endRefreshingForTableView:weakSelf.shoppingTableview];
...@@ -368,7 +368,7 @@ ...@@ -368,7 +368,7 @@
DeleteCartRequest *delecteGoods = [[DeleteCartRequest alloc]init]; DeleteCartRequest *delecteGoods = [[DeleteCartRequest alloc]init];
delecteGoods.cartIds = goodsCode; delecteGoods.cartIds = goodsCode;
WS(weakSelf); 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]; [XBLoadingView hideHUDViewWithDefault];
if (RESULT(returnValue)) { if (RESULT(returnValue)) {
...@@ -465,7 +465,7 @@ ...@@ -465,7 +465,7 @@
} }
delecteGoods.cartIds = codeArr; delecteGoods.cartIds = codeArr;
WS(weakSelf); 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]; [XBLoadingView hideHUDViewWithDefault];
if (RESULT(returnValue)) { if (RESULT(returnValue)) {
...@@ -504,7 +504,7 @@ ...@@ -504,7 +504,7 @@
dispatch_group_enter(group); dispatch_group_enter(group);
NSLog(@"%@",[NSString stringWithFormat:@"%@%@/%@/%@/%ld",SERVERREQUESTURL(CHANGESHOPPINGBAGNUMBERPRICE),model.fid,model.goodsId,[model.costPrice stringValue],model.goodsNum]); 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); dispatch_group_leave(group);
if (RESULT(returnValue)) { if (RESULT(returnValue)) {
...@@ -549,7 +549,7 @@ ...@@ -549,7 +549,7 @@
//商品数量 //商品数量
NSString *goodsNumberString = [NSString stringWithFormat:@"%ld",(long)goodsNumber]; NSString *goodsNumberString = [NSString stringWithFormat:@"%ld",(long)goodsNumber];
WS(weakSelf); 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]; [XBLoadingView hideHUDViewWithDefault];
result(returnValue);//提供是否支持修改的参数 result(returnValue);//提供是否支持修改的参数
......
...@@ -147,7 +147,7 @@ ...@@ -147,7 +147,7 @@
WS(weakSelf); WS(weakSelf);
NSData *data = UIImageJPEGRepresentation(image, 0.5); NSData *data = UIImageJPEGRepresentation(image, 0.5);
XBLoadingView *progressView = [XBLoadingView showHUDViewProgressLabel:@"上传头像中"]; 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)) { if (RESULT(returnValue)) {
[weakSelf modifyshoppersInformation:returnValue[@"data"] complete:^{ [weakSelf modifyshoppersInformation:returnValue[@"data"] complete:^{
...@@ -179,7 +179,7 @@ ...@@ -179,7 +179,7 @@
RsEmployeeRequest *employ = [[RsEmployeeRequest alloc]init]; RsEmployeeRequest *employ = [[RsEmployeeRequest alloc]init];
employ.employee = [Shoppersmanager manager].Shoppers.employee; employ.employee = [Shoppersmanager manager].Shoppers.employee;
employ.employee.picture = headerurl; 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]; [XBLoadingView hideHUDViewWithDefault];
if (RESULT(returnValue)) { if (RESULT(returnValue)) {
...@@ -213,7 +213,7 @@ ...@@ -213,7 +213,7 @@
[alertVC addAction:[UIAlertAction actionWithTitle:@"确认" style:UIAlertActionStyleDestructive handler:^(UIAlertAction * _Nonnull action) { [alertVC addAction:[UIAlertAction actionWithTitle:@"确认" style:UIAlertActionStyleDestructive handler:^(UIAlertAction * _Nonnull action) {
[XBLoadingView showHUDViewWithDefault]; [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]; [XBLoadingView hideHUDViewWithDefault];
if (RESULT(returnValue)) { if (RESULT(returnValue)) {
...@@ -277,7 +277,7 @@ ...@@ -277,7 +277,7 @@
login.username = self.userName.text; login.username = self.userName.text;
login.password = self.passWord.text; login.password = self.passWord.text;
WS(weakSelf); 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]; [XBLoadingView hideHUDViewWithDefault];
if (RESULT(returnValue)) { if (RESULT(returnValue)) {
......
...@@ -98,7 +98,7 @@ ...@@ -98,7 +98,7 @@
{ {
WS(weakSelf); WS(weakSelf);
[XBLoadingView showHUDViewWithDefaultWithView:self.view]; [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.emptyDataSetSource = weakSelf;
weakSelf.withdrawalTableView.emptyDataSetDelegate = weakSelf; weakSelf.withdrawalTableView.emptyDataSetDelegate = weakSelf;
......
...@@ -426,7 +426,7 @@ ...@@ -426,7 +426,7 @@
#pragma mark -查询购物车数量 #pragma mark -查询购物车数量
- (void)QueryShoppingCarNumber - (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)) { if (RESULT(returnValue)) {
NSLog(@"更新购物车数量成功"); NSLog(@"更新购物车数量成功");
...@@ -682,8 +682,6 @@ ...@@ -682,8 +682,6 @@
} }
- (void)dealloc - (void)dealloc
{ {
NSLog(@"释放%@控制器",self); NSLog(@"释放%@控制器",self);
......
...@@ -57,34 +57,12 @@ ...@@ -57,34 +57,12 @@
#import "CustomTOAfficheEntity.h" #import "CustomTOAfficheEntity.h"
#import "ICRPlaceholderTextView.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 RESULT(response) [returnValue[@"code"] isEqualToNumber:@0]
//网络请求
#define HTTP [NetworkRequestClassManager manager]
/** /**
保存账号密码serviceName 保存账号密码serviceName
......
...@@ -237,7 +237,7 @@ ...@@ -237,7 +237,7 @@
{ {
WS(weakSelf); 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)) { if (RESULT(returnValue)) {
SceneFilter *filterModel = [[SceneFilter alloc]initWithDictionary:returnValue[@"data"] error:nil]; SceneFilter *filterModel = [[SceneFilter alloc]initWithDictionary:returnValue[@"data"] error:nil];
...@@ -301,7 +301,7 @@ ...@@ -301,7 +301,7 @@
- (void)getSceneLibrarydatas:(SceneCondition *)condition isRemove:(BOOL)remove - (void)getSceneLibrarydatas:(SceneCondition *)condition isRemove:(BOOL)remove
{ {
WS(weakSelf); 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.sceneOrProductClollectionView.emptyDataSetSource = weakSelf;
[weakSelf endRefreshingForTableView:weakSelf.sceneOrProductClollectionView]; [weakSelf endRefreshingForTableView:weakSelf.sceneOrProductClollectionView];
...@@ -378,7 +378,7 @@ ...@@ -378,7 +378,7 @@
- (void)getScreeningdatasisRemoveArray:(BOOL)remove - (void)getScreeningdatasisRemoveArray:(BOOL)remove
{ {
WS(weakSelf); 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 (RESULT(returnValue)) {
...@@ -511,7 +511,7 @@ ...@@ -511,7 +511,7 @@
- (void)getGoodsListdatas:(GoodsCondition *)conditon returnResponse:(void(^)(GoodsResponse *))finish - (void)getGoodsListdatas:(GoodsCondition *)conditon returnResponse:(void(^)(GoodsResponse *))finish
{ {
WS(weakSelf); 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]; [weakSelf endRefreshingForTableView:weakSelf.sceneOrProductClollectionView];
if (RESULT(returnValue)) { if (RESULT(returnValue)) {
......
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
[self dismissViewControllerAnimated:YES completion:nil]; [self dismissViewControllerAnimated:YES completion:nil];
[XBLoadingView showHUDViewWithDefault]; [XBLoadingView showHUDViewWithDefault];
NSString *shareOrderString = [NSString stringWithFormat:@"%@/%@",SHAREORDERBILL,self.orderBillNumber]; 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]; [XBLoadingView hideHUDViewWithDefault];
if (RESULT(returnValue)) { if (RESULT(returnValue)) {
...@@ -53,7 +53,7 @@ ...@@ -53,7 +53,7 @@
NSString *goodsID = [self.goodsIds substringToIndex:[self.goodsIds length]-1]; NSString *goodsID = [self.goodsIds substringToIndex:[self.goodsIds length]-1];
NSDictionary *parameterDict = [NSDictionary dictionaryWithObjectsAndKeys:[goodsID substringToIndex:self.goodsIds.length-1],@"goodsIds",@"",@"title",@"",@"remark",nil]; NSDictionary *parameterDict = [NSDictionary dictionaryWithObjectsAndKeys:[goodsID substringToIndex:self.goodsIds.length-1],@"goodsIds",@"",@"title",@"",@"remark",nil];
XBLoadingView *progressView = [XBLoadingView showHUDViewProgressLabel:@"上传图片中"]; 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)) { if (RESULT(returnValue)) {
NSString *shareWeb = returnValue[@"data"][@"url"]; NSString *shareWeb = returnValue[@"data"][@"url"];
......
...@@ -255,7 +255,7 @@ ...@@ -255,7 +255,7 @@
shopCar.goodsId = [goodsIds substringToIndex:goodsIds.length-1]; shopCar.goodsId = [goodsIds substringToIndex:goodsIds.length-1];
shopCar.count = [goodsCounts substringToIndex:goodsCounts.length-1]; shopCar.count = [goodsCounts substringToIndex:goodsCounts.length-1];
WS(weakSelf); 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]; [XBLoadingView hideHUDViewWithDefault];
if (RESULT(returnValue)) { if (RESULT(returnValue)) {
...@@ -305,7 +305,7 @@ ...@@ -305,7 +305,7 @@
//商品数量 //商品数量
NSString *goodsNumberString = [NSString stringWithFormat:@"%ld",(long)goodsNumber]; NSString *goodsNumberString = [NSString stringWithFormat:@"%ld",(long)goodsNumber];
WS(weakSelf); 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]; [XBLoadingView hideHUDViewWithDefault];
result(returnValue);//提供是否支持修改的参数 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