NorthAmeirica


 #pragma mark - 改这里
    if ([FSGlobalMethodClass judgeDicIsHaveData:[dic objectForKey:@"qiniuPrefix"]]) {
        _qiniuPrefix = [NSString stringWithFormat:@"%@",[dic objectForKey:@"qiniuPrefixNa"]];
        
        AppDelegate * deleDeng = (AppDelegate *) [UIApplication sharedApplication ].delegate;
        if ( [deleDeng.isAbroadStr isEqualToString: @"0" ]){
        
            _qiniuPrefix = [NSString stringWithFormat:@"%@",[dic objectForKey:@"qiniuPrefix"]];
        
        }
        
        
#pragma mark -  这里改 ,试试
       /* [FSGetNetworkDataMethod getIPAddressesDengWithURL: abroadIPAddressesDengWithURL completion:^(id result) {
            
            if ( [result[@"country"] isEqual: @"中国" ]) {
                
                _qiniuPrefix = [NSString stringWithFormat:@"%@",[dic objectForKey:@"qiniuPrefix"]];
                
            }
            
        }];*/
        
        
        
        
    }
   
//    if ([FSGlobalMethodClass judgeDicIsHaveData:[dic objectForKey:@"qiniuPrefixNa"]]) {
//        _qiniuPrefixNa = [NSString stringWithFormat:@"%@",[dic objectForKey:@"qiniuPrefixNa"]];
//    }


try


   
    //
    __block NSString *keyName = [NSString stringWithFormat:@"na%@/%@_%@.png",@"post",[YMJMainModel sharedObject].userinfo.userId, [FSGlobalMethodClass get1970ToNowMS]];
    
    
    
#pragma mark - 这里哦

    [FSGetNetworkDataMethod getIPAddressesDengWithURL: @"http://int.dpool.sina.com.cn/iplookup/iplookup.php?format=js"  completion:^(id result) {
        
        if ( [result[@"country"] isEqual: @"中国" ]) {
            
            keyName = [NSString stringWithFormat:@"%@/%@_%@.png",@"post",[YMJMainModel sharedObject].userinfo.userId, [FSGlobalMethodClass get1970ToNowMS]];
            
        }
        
    }];
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • ```java /* * Copyright (C) 2006 The Android Open Source P...
    mrganer阅读 1,168评论 0 50
  • 接着上上节 thread ,本节主要介绍mutex的内容,练习代码地址。<mutex>:该头文件主要声明了与互斥量...
    jorion阅读 12,585评论 2 4
  • 1. Java基础部分 基础部分的顺序:基本语法,类相关的语法,内部类的语法,继承相关的语法,异常的语法,线程的语...
    子非鱼_t_阅读 31,823评论 18 399
  • Python异常处理 异常概念: 异常:就是不正常的情况,程序开发过程中错误和BUG都是补充正常的情况 异常发生的...
    youngkun阅读 947评论 0 4
  • 星星的舟 【日本】村山由佳 每个人物都刻画的尤其细腻,从晓的回忆入手,从和凉子的话语到沙蕙的过去再到志津子的离去也...
    濯清阅读 259评论 0 0