Commit e79add47 authored by 曹云霄's avatar 曹云霄

修改项说明:

parent 912fec60
...@@ -287,9 +287,6 @@ ...@@ -287,9 +287,6 @@
{ {
if (error != NULL) { if (error != NULL) {
[self ErrorMBProgressView:@"保存相册失败"]; [self ErrorMBProgressView:@"保存相册失败"];
}else
{
[self SuccessMBProgressView:@"保存相册成功"];
} }
} }
......
...@@ -41,11 +41,9 @@ ...@@ -41,11 +41,9 @@
} }
} WithErrorCodeBlock:^(id errorCodeValue) { } WithErrorCodeBlock:^(id errorCodeValue) {
[weakSelf RemoveMBProgressHUDLoding]; [weakSelf ErrorMBProgressView:NETWORK];
[weakSelf SHOWPrompttext:NETWORK];
} WithFailureBlock:^(NSError *error) { } WithFailureBlock:^(NSError *error) {
[weakSelf RemoveMBProgressHUDLoding]; [weakSelf ErrorMBProgressView:error.localizedDescription];
[weakSelf SHOWPrompttext:error.localizedDescription];
}]; }];
}else//分享商品 }else//分享商品
{ {
...@@ -55,42 +53,31 @@ ...@@ -55,42 +53,31 @@
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];
//上传图片 //上传图片
[[NetworkRequestClassManager Manager] UploadImageWithURL:SERVERREQUESTURL(SHARE) WithRequestType:0 WithImageDatas:imageData WithParameter:parameterDict WithReturnValueBlock:^(id returnValue) { [[NetworkRequestClassManager Manager] UploadImageWithURL:SERVERREQUESTURL(SHARE) WithRequestType:0 WithImageDatas:imageData WithParameter:parameterDict WithReturnValueBlock:^(id returnValue) {
if ([returnValue[@"code"] isEqualToNumber:@0]) { if ([returnValue[@"code"] isEqualToNumber:@0]) {
NSString *shareWeb = returnValue[@"data"][@"url"]; NSString *shareWeb = returnValue[@"data"][@"url"];
[weakSelf callSharePlatform:shareWeb withPlatformTag:sender withTitle:ShareTitle]; [weakSelf callSharePlatform:shareWeb withPlatformTag:sender withTitle:ShareTitle];
}else }else
{ {
if ([weakSelf.delegate respondsToSelector:@selector(CodeNotEqualZERO:)]) { if ([weakSelf.delegate respondsToSelector:@selector(CodeNotEqualZERO:)]) {
[weakSelf.delegate CodeNotEqualZERO:returnValue[@"message"]]; [weakSelf.delegate CodeNotEqualZERO:returnValue[@"message"]];
} }
} }
}WithprogressBlock:^(double progress) { }WithprogressBlock:^(double progress) {
if (progress >= 1) { if (progress >= 1) {
if ([weakSelf.delegate respondsToSelector:@selector(UploadImageSuccess)]) { if ([weakSelf.delegate respondsToSelector:@selector(UploadImageSuccess)]) {
[weakSelf.delegate UploadImageSuccess]; [weakSelf.delegate UploadImageSuccess];
} }
}else }else
{ {
if ([weakSelf.delegate respondsToSelector:@selector(UploadImageProgress:)]) { if ([weakSelf.delegate respondsToSelector:@selector(UploadImageProgress:)]) {
[weakSelf.delegate UploadImageProgress:progress]; [weakSelf.delegate UploadImageProgress:progress];
} }
} }
} WithErrorCodeBlock:^(id errorCodeValue) { } WithErrorCodeBlock:^(id errorCodeValue) {
[weakSelf ErrorMBProgressView:NETWORK];
} WithFailureBlock:^(NSError *error) { } WithFailureBlock:^(NSError *error) {
if ([weakSelf.delegate respondsToSelector:@selector(UploadImageFailue)]) { if ([weakSelf.delegate respondsToSelector:@selector(UploadImageFailue)]) {
[weakSelf.delegate UploadImageFailue]; [weakSelf.delegate UploadImageFailue];
} }
[weakSelf ErrorMBProgressView:error.localizedDescription]; [weakSelf ErrorMBProgressView:error.localizedDescription];
...@@ -109,7 +96,6 @@ ...@@ -109,7 +96,6 @@
[UMSocialData defaultData].extConfig.wechatSessionData.url = shareWeb; [UMSocialData defaultData].extConfig.wechatSessionData.url = shareWeb;
[[UMSocialDataService defaultDataService] postSNSWithTypes:@[UMShareToWechatSession] content:title image:self.shareImage location:nil urlResource:nil presentedController:self completion:^(UMSocialResponseEntity *response){ [[UMSocialDataService defaultDataService] postSNSWithTypes:@[UMShareToWechatSession] content:title image:self.shareImage location:nil urlResource:nil presentedController:self completion:^(UMSocialResponseEntity *response){
if (response.responseCode == UMSResponseCodeSuccess) { if (response.responseCode == UMSResponseCodeSuccess) {
[self SuccessMBProgressView:@"分享微信好友成功"]; [self SuccessMBProgressView:@"分享微信好友成功"];
} }
}]; }];
...@@ -122,7 +108,6 @@ ...@@ -122,7 +108,6 @@
[UMSocialData defaultData].extConfig.wechatTimelineData.url = shareWeb; [UMSocialData defaultData].extConfig.wechatTimelineData.url = shareWeb;
[[UMSocialDataService defaultDataService] postSNSWithTypes:@[UMShareToWechatTimeline] content:title image:self.shareImage location:nil urlResource:nil presentedController:self completion:^(UMSocialResponseEntity *response){ [[UMSocialDataService defaultDataService] postSNSWithTypes:@[UMShareToWechatTimeline] content:title image:self.shareImage location:nil urlResource:nil presentedController:self completion:^(UMSocialResponseEntity *response){
if (response.responseCode == UMSResponseCodeSuccess) { if (response.responseCode == UMSResponseCodeSuccess) {
[self SuccessMBProgressView:@"分享微信朋友圈成功"]; [self SuccessMBProgressView:@"分享微信朋友圈成功"];
} }
}]; }];
...@@ -135,7 +120,6 @@ ...@@ -135,7 +120,6 @@
[UMSocialData defaultData].extConfig.sinaData.shareText = [NSString stringWithFormat:@"%@%@",@"欧普照明",shareWeb]; [UMSocialData defaultData].extConfig.sinaData.shareText = [NSString stringWithFormat:@"%@%@",@"欧普照明",shareWeb];
[[UMSocialDataService defaultDataService] postSNSWithTypes:@[UMShareToSina] content:title image:self.shareImage location:nil urlResource:nil presentedController:self completion:^(UMSocialResponseEntity *shareResponse){ [[UMSocialDataService defaultDataService] postSNSWithTypes:@[UMShareToSina] content:title image:self.shareImage location:nil urlResource:nil presentedController:self completion:^(UMSocialResponseEntity *shareResponse){
if (shareResponse.responseCode == UMSResponseCodeSuccess) { if (shareResponse.responseCode == UMSResponseCodeSuccess) {
[self SuccessMBProgressView:@"分享新浪微博成功"]; [self SuccessMBProgressView:@"分享新浪微博成功"];
} }
}]; }];
......
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