Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 983dfce

Browse files
qiniudn.com 不能用了
1 parent eb4927f commit 983dfce

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

‎Coding_iOS/Util/OC_Category/NSString+Common.m

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -102,12 +102,7 @@ - (NSURL *)urlImageWithCodePathResize:(CGFloat)width crop:(BOOL)needCrop{
102102
if (!imageName) {
103103
imageName = [self stringByMatching:@"/static/project_icon/([a-zA-Z0-9\\-._]+)$" capture:1];
104104
}
105-
if (imageName && imageName.length > 0) {
106-
urlStr = [NSString stringWithFormat:@"http://coding-net-avatar.qiniudn.com/%@?imageMogr2/auto-orient/thumbnail/!%.0fx%.0fr", imageName, width, width];
107-
canCrop = YES;
108-
}else{
109-
urlStr = [NSString stringWithFormat:@"%@%@", [NSObject baseURLStr], [self hasPrefix:@"/"]? [self substringFromIndex:1]: self];
110-
}
105+
urlStr = [NSString stringWithFormat:@"%@%@", [NSObject baseURLStr], [self hasPrefix:@"/"]? [self substringFromIndex:1]: self];
111106
}else{
112107
urlStr = self;
113108
if ([urlStr rangeOfString:@"qbox.me"].location != NSNotFound) {

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /