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

修改项说明:

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