#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]];
}
}];