|
@@ -197,7 +197,7 @@
|
|
|
NSData *imgData = [UIImage turnsImaegDataByImage:image];
|
|
|
NSString *avatarName = [NSString stringWithFormat:@"%@.png", UserDefault(UIDKey)];
|
|
|
|
|
|
- [UPLOAD_MANAGER configWithfilePath:@"/user/"];
|
|
|
+ [UPLOAD_MANAGER configWithfilePath:@"/user/avatar/"];
|
|
|
[UPLOAD_MANAGER uploadFixedNameImage:imgData fileName:avatarName successCallback:^(NSMutableArray * _Nonnull fileUrlArray) {
|
|
|
NSString *avatarUrl = [fileUrlArray lastObject];
|
|
|
avatarUrl = [NSString stringWithFormat:@"%@?t=%@", avatarUrl, [NSDate getCurrentTimestamp]];
|