重庆迈尖科技有限公司
2018-08-13 e5336a0cbb884c5fc30755b5b73f77647121050a
no message
3个文件已修改
47 ■■■■ 已修改文件
MIduo.xcodeproj/xcuserdata/mj.xcuserdatad/xcschemes/MIduo.xcscheme 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
MIduo.xcworkspace/xcuserdata/mj.xcuserdatad/UserInterfaceState.xcuserstate 补丁 | 查看 | 原始文档 | blame | 历史
MIduo/界面/动态/DynamicViewController.m 45 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MIduo.xcodeproj/xcuserdata/mj.xcuserdatad/xcschemes/MIduo.xcscheme
@@ -23,7 +23,7 @@
      </BuildActionEntries>
   </BuildAction>
   <TestAction
      buildConfiguration = "Release"
      buildConfiguration = "Debug"
      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
      shouldUseLaunchSchemeArgsEnv = "YES">
MIduo.xcworkspace/xcuserdata/mj.xcuserdatad/UserInterfaceState.xcuserstate
Binary files differ
MIduo/½çÃæ/¶¯Ì¬/DynamicViewController.m
@@ -114,8 +114,11 @@
            
        case 0:
            //没有网络
            if (self.dataSource.count == 0) {
            self.anomalyView.hidden = YES;
            self.noNetworkViews.hidden = NO;
            }
            
            break;
            
@@ -344,23 +347,29 @@
            return;
        }
    }
    [SVProgressHUD show];
    [self activityAddShareCountWithID:dic[@"id"]];
    NSMutableArray *picArray = @[].mutableCopy;
    
    if ([dic[@"type"]integerValue] == 1) {
        [self shareGoods:dic[@"id"]];
        return;
    }else{
        if ([dic[@"type"]integerValue] == 3) {
            NSArray *arr = dic[@"imageList"];
            if (arr.count > 0) {
                NSData * data = [NSData dataWithContentsOfURL:[NSURL URLWithString:arr[0]]];
                UIImage *image = [UIImage imageWithData:data];
                [picArray addObject:image];
            }
        }else
        {
        } else {
            [self activityinviteImgWirh:dic[@"id"]];
            return;
        }
@@ -377,16 +386,22 @@
 @param activityId åˆ†äº«é¡¹çš„ID
 */
- (void)shareGoods:(NSString *)activityId{
    [SVProgressHUD setContainerView:[UIApplication sharedApplication].delegate.window];
    [SVProgressHUD show];
    NSMutableDictionary *dic = @{}.mutableCopy;
    [dic setValue:[[NSUserDefaults standardUserDefaults] objectForKey:@"userId"] forKey:@"uid"];
    [dic setValue:activityId forKey:@"activityId"];
    NSDictionary *dictionary = [SJNetwork CommonDictionarywithDic:dic];
    [YTHsharedManger startManger].isMainOrDynamic = YES;
    
    [JYNetWorking Post:[NSString stringWithFormat:@"%@/%@",domainHTTP,@"activity/shareGoods"] param:dictionary isMainOrDynamic:YES success:^(NSDictionary *object) {
        //        NSLog(@"%@",object);
    [JYNetWorking Post:[NSString stringWithFormat:@"%@/%@",domainHTTP,@"activity/shareGoods"]
                 param:dictionary
       isMainOrDynamic:YES success:^(NSDictionary *object) {
        if ([object[@"code"]integerValue] == 0) {
            [SVProgressHUD show];
            
            NSDictionary *dic = object[@"data"];
            NSString *shareString =[NSString stringWithFormat:@"%@",dic[@"shareTitle"]];
@@ -424,12 +439,22 @@
            }
            
        }else{
               [SVProgressHUD dismiss];
            [SVProgressHUD setContainerView:[UIApplication sharedApplication].delegate.window];
            [SVProgressHUD showErrorWithStatus:object[@"msg"]];
        }
        
    } fail:^(id object) {
        [SVProgressHUD dismiss];
           if (((NSError *)object).code == -1009) {
               [CustomProgressHUD showNormal:@"网络未连接,请检测网络设置"];
           } else {
               [CustomProgressHUD showNormal:@"网络连接异常,请检测网络设置"];
           }
    }];
}
@@ -491,6 +516,14 @@
        
    } fail:^(id object) {
        
        if (((NSError *)object).code == -1009) {
            [CustomProgressHUD showNormal:@"网络未连接,请检测网络设置"];
        } else {
            [CustomProgressHUD showNormal:@"网络连接异常,请检测网络设置"];
        }
    }];
}