Pārlūkot izejas kodu

头像path 更改为 "/user/avatar/"

Steven 3 mēneši atpakaļ
vecāks
revīzija
6071da22f5

+ 1 - 1
KulexiuForTeacher/KulexiuForTeacher/Module/Mine/Setting/Controller/UserSettingViewController.m

@@ -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]];