Steven 1 éve
szülő
commit
a1463d6506
18 módosított fájl, 17 hozzáadás és 128 törlés
  1. 0 14
      KulexiuForTeacher/KulexiuForTeacher.xcodeproj/project.pbxproj
  2. 3 3
      KulexiuForTeacher/KulexiuForTeacher/Common/Base/KSBaseWKWebViewController.m
  3. 4 4
      KulexiuForTeacher/KulexiuForTeacher/Common/MediaMerge/AudioMerge/KSMediaMergeView.m
  4. 1 1
      KulexiuForTeacher/KulexiuForTeacher/Module/Live/Controller/CreateLiveViewController.m
  5. 0 1
      KulexiuForTeacher/KulexiuForTeacher/Module/Login/Controller/LoginViewController.m
  6. 0 1
      KulexiuForTeacher/KulexiuForTeacher/Module/Login/Controller/PasswordLoginController.m
  7. 0 1
      KulexiuForTeacher/KulexiuForTeacher/Module/Mine/AddressList/Controller/AddressDetailViewController.m
  8. 4 4
      KulexiuForTeacher/KulexiuForTeacher/Module/Mine/CreateStyle/Controller/MyStyleViewController.m
  9. 1 1
      KulexiuForTeacher/KulexiuForTeacher/Module/Mine/Feedback/Controller/FeedbackViewController.m
  10. 0 1
      KulexiuForTeacher/KulexiuForTeacher/Module/Mine/Setting/Controller/ModifyPhoneChangeController.m
  11. 0 1
      KulexiuForTeacher/KulexiuForTeacher/Module/Mine/Setting/Controller/ModifyPhoneCheckController.m
  12. 1 1
      KulexiuForTeacher/KulexiuForTeacher/Module/Mine/Setting/Controller/UserSettingViewController.m
  13. 0 1
      KulexiuForTeacher/KulexiuForTeacher/Module/Mine/Setting/DeleteAccount/Controller/AccountDeleteViewController.m
  14. 1 1
      KulexiuForTeacher/KulexiuForTeacher/Module/TXClassRoom/Controller/TXClassroomViewController.m
  15. 0 22
      KulexiuForTeacher/KulexiuForTeacher/Module/TXClassRoom/Model/Util/Category/UIView+MBProgressHUD.h
  16. 0 69
      KulexiuForTeacher/KulexiuForTeacher/Module/TXClassRoom/Model/Util/Category/UIView+MBProgressHUD.m
  17. 1 1
      KulexiuForTeacher/KulexiuForTeacher/Module/TXClassRoom/View/NewWhiteboard/KSNewWhiteBoard.m
  18. 1 1
      KulexiuForTeacher/KulexiuForTeacher/Module/TXClassRoom/View/NewWhiteboard/KSWhiteboardView.m

+ 0 - 14
KulexiuForTeacher/KulexiuForTeacher.xcodeproj/project.pbxproj

@@ -941,7 +941,6 @@
 		BCC9F42A27F69BD200647449 /* LoginHelper.m in Sources */ = {isa = PBXBuildFile; fileRef = BCC9F3B427F69BD200647449 /* LoginHelper.m */; };
 		BCC9F42B27F69BD200647449 /* SelectionButton.m in Sources */ = {isa = PBXBuildFile; fileRef = BCC9F3B627F69BD200647449 /* SelectionButton.m */; };
 		BCC9F42C27F69BD200647449 /* InputTextField.m in Sources */ = {isa = PBXBuildFile; fileRef = BCC9F3B927F69BD200647449 /* InputTextField.m */; };
-		BCC9F42D27F69BD200647449 /* UIView+MBProgressHUD.m in Sources */ = {isa = PBXBuildFile; fileRef = BCC9F3C127F69BD200647449 /* UIView+MBProgressHUD.m */; };
 		BCC9F42E27F69BD200647449 /* RolePortraitView.m in Sources */ = {isa = PBXBuildFile; fileRef = BCC9F3C327F69BD200647449 /* RolePortraitView.m */; };
 		BCC9F42F27F69BD200647449 /* HTTPUtility.m in Sources */ = {isa = PBXBuildFile; fileRef = BCC9F3C727F69BD200647449 /* HTTPUtility.m */; };
 		BCC9F43027F69BD200647449 /* HTTPResult.m in Sources */ = {isa = PBXBuildFile; fileRef = BCC9F3C827F69BD200647449 /* HTTPResult.m */; };
@@ -2628,8 +2627,6 @@
 		BCC9F3BB27F69BD200647449 /* LoginHelper.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = LoginHelper.h; sourceTree = "<group>"; };
 		BCC9F3BC27F69BD200647449 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/SealClass.strings; sourceTree = "<group>"; };
 		BCC9F3BE27F69BD200647449 /* ErrorCode.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ErrorCode.h; sourceTree = "<group>"; };
-		BCC9F3C027F69BD200647449 /* UIView+MBProgressHUD.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "UIView+MBProgressHUD.h"; sourceTree = "<group>"; };
-		BCC9F3C127F69BD200647449 /* UIView+MBProgressHUD.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "UIView+MBProgressHUD.m"; sourceTree = "<group>"; };
 		BCC9F3C327F69BD200647449 /* RolePortraitView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RolePortraitView.m; sourceTree = "<group>"; };
 		BCC9F3C427F69BD200647449 /* RolePortraitView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RolePortraitView.h; sourceTree = "<group>"; };
 		BCC9F3C527F69BD200647449 /* Macro.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Macro.h; sourceTree = "<group>"; };
@@ -6639,7 +6636,6 @@
 			children = (
 				BCC9F35C27F69BD100647449 /* SealClass.strings */,
 				BCC9F3BE27F69BD200647449 /* ErrorCode.h */,
-				BCC9F3BF27F69BD200647449 /* Category */,
 				BCC9F3C227F69BD200647449 /* Portrait */,
 				BCC9F3C527F69BD200647449 /* Macro.h */,
 				BCC9F3C627F69BD200647449 /* HTTP */,
@@ -6648,15 +6644,6 @@
 			path = Util;
 			sourceTree = "<group>";
 		};
-		BCC9F3BF27F69BD200647449 /* Category */ = {
-			isa = PBXGroup;
-			children = (
-				BCC9F3C027F69BD200647449 /* UIView+MBProgressHUD.h */,
-				BCC9F3C127F69BD200647449 /* UIView+MBProgressHUD.m */,
-			);
-			path = Category;
-			sourceTree = "<group>";
-		};
 		BCC9F3C227F69BD200647449 /* Portrait */ = {
 			isa = PBXGroup;
 			children = (
@@ -7990,7 +7977,6 @@
 				BCF61BEC28042D1A0000ACFE /* InstrumentMessageModel.m in Sources */,
 				BC58E7DD281B969B004B0893 /* MinePageTopView.m in Sources */,
 				27D5D5D127EDBA9400B4720C /* NoticeEditBodyView.m in Sources */,
-				BCC9F42D27F69BD200647449 /* UIView+MBProgressHUD.m in Sources */,
 				BCDB093428058A8700D0BDAD /* LiveLessonModel.m in Sources */,
 				BC71DEFC2A89F470003F165E /* TXQuitChooseView.m in Sources */,
 				275E8A7A27E18F2800DD3F6E /* main.m in Sources */,

+ 3 - 3
KulexiuForTeacher/KulexiuForTeacher/Common/Base/KSBaseWKWebViewController.m

@@ -664,7 +664,7 @@ typedef NS_ENUM(NSInteger, CHOOSETYPE) {
     NSString *fileName = @"videoCoverImage";
 
     [LOADING_MANAGER showCustomLoading:@"上传中..."];
-    [UPLOAD_MANAGER configWithfilePath:@"klx"];
+    [UPLOAD_MANAGER configWithfilePath:@"/user/"];
     [UPLOAD_MANAGER uploadFile:imgData fileName:fileName fileSuffix:[UIImage typeForImageData:imgData] progress:^(int64_t bytesWritten, int64_t totalBytes) {
         // 显示进度
         int progress = (int)(bytesWritten / totalBytes * 100);
@@ -1304,7 +1304,7 @@ typedef NS_ENUM(NSInteger, CHOOSETYPE) {
         NSData *imgData = [UIImage turnsImaegDataByImage:image];
         [imageDataArray addObject:imgData];
     }
-    [UPLOAD_MANAGER configWithfilePath:@"klx"];
+    [UPLOAD_MANAGER configWithfilePath:@"/user/"];
     [[KSUploadManager shareInstance] mutilUploadImage:imageDataArray fileName:@"complainImg" successCallback:^(NSMutableArray * _Nonnull fileUrlArray) {
         [LOADING_MANAGER removeHUD];
         NSMutableArray *urlArray = [NSMutableArray array];
@@ -1433,7 +1433,7 @@ typedef NS_ENUM(NSInteger, CHOOSETYPE) {
         [LOADING_MANAGER showHUD];
         NSString *suffix = [NSString stringWithFormat:@".%@",[[fileName componentsSeparatedByString:@"."] lastObject]];
         NSData *fileData = [NSData dataWithContentsOfURL:[NSURL fileURLWithPath:fileUrl]];
-        [UPLOAD_MANAGER configWithfilePath:@"klx"];
+        [UPLOAD_MANAGER configWithfilePath:@"/user/"];
         [UPLOAD_MANAGER uploadFile:fileData fileName:@"file" fileSuffix:suffix progress:^(int64_t bytesWritten, int64_t totalBytes) {
             
         } successCallback:^(NSMutableArray * _Nonnull fileUrlArray) {

+ 4 - 4
KulexiuForTeacher/KulexiuForTeacher/Common/MediaMerge/AudioMerge/KSMediaMergeView.m

@@ -759,7 +759,7 @@
     if (self.settingImage) {
         NSData *imgData = [UIImage turnsImaegDataByImage:self.settingImage];
         NSString *fileName = @"musicCoverImg";
-        [UPLOAD_MANAGER configWithfilePath:@"klx"];
+        [UPLOAD_MANAGER configWithfilePath:@"/user/"];
         [[KSUploadManager shareInstance] uploadImage:imgData fileName:fileName successCallback:^(NSMutableArray * _Nonnull fileUrlArray) {
             NSString *avatarUrl = [fileUrlArray lastObject];
             self.coverImage = avatarUrl;
@@ -780,7 +780,7 @@
     if (self.videoCoverImage) {
         NSData *imgData = [UIImage turnsImaegDataByImage:self.videoCoverImage];
         NSString *fileName = @"musicCoverImg";
-        [UPLOAD_MANAGER configWithfilePath:@"klx"];
+        [UPLOAD_MANAGER configWithfilePath:@"/user/"];
         [[KSUploadManager shareInstance] uploadImage:imgData fileName:fileName successCallback:^(NSMutableArray * _Nonnull fileUrlArray) {
             NSString *avatarUrl = [fileUrlArray lastObject];
             self.videoCoverUrl = avatarUrl;
@@ -1161,7 +1161,7 @@
     [LOADING_MANAGER showProgressLoading:tips progress:beginProgress];
     NSData *fileData = [NSData dataWithContentsOfURL:fileUrl];
     NSString *suffix = [NSString stringWithFormat:@".%@",[fileUrl pathExtension]];
-    [UPLOAD_MANAGER configWithfilePath:@"klx"];
+    [UPLOAD_MANAGER configWithfilePath:@"/user/"];
     [[KSUploadManager shareInstance] videoUpload:fileData fileName:@"video" fileSuffix:suffix progress:^(int64_t bytesWritten, int64_t totalBytes) {
         // 显示进度
         float progress = (bytesWritten*1.0 / totalBytes) * rate + beginProgress;
@@ -1194,7 +1194,7 @@
     [LOADING_MANAGER showProgressLoading:tips progress:beginProgress];
     NSData *fileData = [NSData dataWithContentsOfURL:fileUrl];
     NSString *suffix = [NSString stringWithFormat:@".%@",[fileUrl pathExtension]];
-    [UPLOAD_MANAGER configWithfilePath:@"klx"];
+    [UPLOAD_MANAGER configWithfilePath:@"/user/"];
     [UPLOAD_MANAGER uploadFile:fileData fileName:@"evaluateAudio" fileSuffix:suffix progress:^(int64_t bytesWritten, int64_t totalBytes) {
         // 显示进度
         float progress = (bytesWritten*1.0 / totalBytes) * rate + beginProgress;

+ 1 - 1
KulexiuForTeacher/KulexiuForTeacher/Module/Live/Controller/CreateLiveViewController.m

@@ -114,7 +114,7 @@
     UIImage *coverImage = [self.imageArray lastObject];
     NSData *imgData = [UIImage turnsImaegDataByImage:coverImage];
     NSString *fileName = @"image";
-    [UPLOAD_MANAGER configWithfilePath:@"klx"];
+    [UPLOAD_MANAGER configWithfilePath:@"/live/"];
     [UPLOAD_MANAGER uploadImage:imgData fileName:fileName successCallback:^(NSMutableArray * _Nonnull fileUrlArray) {
         NSString *avatarUrl = [fileUrlArray lastObject];
         [self uploadCoverImage:avatarUrl liveTilte:title content:content];

+ 0 - 1
KulexiuForTeacher/KulexiuForTeacher/Module/Login/Controller/LoginViewController.m

@@ -10,7 +10,6 @@
 #import "VefiCodeLoginController.h"
 #import "PasswordLoginController.h"
 #import "KSBaseWKWebViewController.h"
-#import <KSToolLibrary/NSString+phone.h>
 
 @interface LoginViewController ()
 

+ 0 - 1
KulexiuForTeacher/KulexiuForTeacher/Module/Login/Controller/PasswordLoginController.m

@@ -9,7 +9,6 @@
 #import "PasswordBodyView.h"
 #import "AppDelegate.h"
 #import "UserInfoManager.h"
-#import <KSToolLibrary/NSString+phone.h>
 
 @interface PasswordLoginController ()
 

+ 0 - 1
KulexiuForTeacher/KulexiuForTeacher/Module/Mine/AddressList/Controller/AddressDetailViewController.m

@@ -9,7 +9,6 @@
 #import "KSAddressPickerView.h"
 #import "NSObject+ReadDocument.h"   // 读取文件
 #import "AddressDetailBodyView.h"
-#import <KSToolLibrary/NSString+phone.h>
 
 @interface AddressDetailViewController ()
 

+ 4 - 4
KulexiuForTeacher/KulexiuForTeacher/Module/Mine/CreateStyle/Controller/MyStyleViewController.m

@@ -403,7 +403,7 @@
     // 上传图片
     NSData *imgData = [UIImage compressImage:firstImage maxLength:5];
     NSString *fileName = @"styleImage";
-    [UPLOAD_MANAGER configWithfilePath:@"klx"];
+    [UPLOAD_MANAGER configWithfilePath:@"/user/"];
     [UPLOAD_MANAGER uploadImage:imgData fileName:fileName successCallback:^(NSMutableArray * _Nonnull fileUrlArray) {
         NSString *imageUrl = [fileUrlArray lastObject];
         if (self.videoArray.count > index) {
@@ -425,7 +425,7 @@
             // 上传图片
             NSData *imgData = [UIImage compressImage:firstImage maxLength:5];
             NSString *fileName = @"styleImage";
-            [UPLOAD_MANAGER configWithfilePath:@"klx"];
+            [UPLOAD_MANAGER configWithfilePath:@"/user/"];
             [[KSUploadManager shareInstance] uploadImage:imgData fileName:fileName successCallback:^(NSMutableArray * _Nonnull fileUrlArray) {
                 NSString *imageUrl = [fileUrlArray lastObject];
                 [self uploadVideoWithUrl:videoUrl coverUrl:imageUrl];
@@ -451,7 +451,7 @@
     NSURL *fileUrl = [NSURL fileURLWithPath:videoUrl];
     NSData *fileData = [NSData dataWithContentsOfURL:fileUrl];
     NSString *suffix = [NSString stringWithFormat:@".%@",[fileUrl pathExtension]];
-    [UPLOAD_MANAGER configWithfilePath:@"klx"];
+    [UPLOAD_MANAGER configWithfilePath:@"/user/"];
     [[KSUploadManager shareInstance] videoUpload:fileData fileName:@"video" fileSuffix:suffix progress:^(int64_t bytesWritten, int64_t totalBytes) {
         dispatch_main_async_safe(^{
             // 显示进度
@@ -726,7 +726,7 @@
 - (void)updateWithUserLogo:(UIImage *)image {
     NSData *imgData = [UIImage turnsImaegDataByImage:image];
     NSString *fileName = @"image";
-    [UPLOAD_MANAGER configWithfilePath:@"klx"];
+    [UPLOAD_MANAGER configWithfilePath:@"/user/"];
     [[KSUploadManager shareInstance] uploadImage:imgData fileName:fileName successCallback:^(NSMutableArray * _Nonnull fileUrlArray) {
         NSString *avatarUrl = [fileUrlArray lastObject];
         [self modifyUserMessage:avatarUrl gender:nil];

+ 1 - 1
KulexiuForTeacher/KulexiuForTeacher/Module/Mine/Feedback/Controller/FeedbackViewController.m

@@ -155,7 +155,7 @@
             NSData *imgData = [UIImage turnsImaegDataByImage:image];
             [imageDataArray addObject:imgData];
         }
-        [UPLOAD_MANAGER configWithfilePath:@"klx"];
+        [UPLOAD_MANAGER configWithfilePath:@"/user/"];
         [UPLOAD_MANAGER mutilUploadImage:imageDataArray fileName:@"complainImg" successCallback:^(NSMutableArray * _Nonnull fileUrlArray) {
             NSMutableArray *urlArray = [NSMutableArray array];
             for (NSString *url in fileUrlArray) {

+ 0 - 1
KulexiuForTeacher/KulexiuForTeacher/Module/Mine/Setting/Controller/ModifyPhoneChangeController.m

@@ -12,7 +12,6 @@
 #import "AppDelegate.h"
 #import "CustomNavViewController.h"
 #import "JPUSHService.h"
-#import <KSToolLibrary/NSString+phone.h>
 
 @interface ModifyPhoneChangeController ()
 {

+ 0 - 1
KulexiuForTeacher/KulexiuForTeacher/Module/Mine/Setting/Controller/ModifyPhoneCheckController.m

@@ -8,7 +8,6 @@
 #import "ModifyPhoneCheckController.h"
 #import "PhoneCheckBodyView.h"
 #import "ModifyPhoneChangeController.h"
-#import <KSToolLibrary/NSString+phone.h>
 
 @interface ModifyPhoneCheckController ()
 

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

@@ -195,7 +195,7 @@
 - (void)updateWithUserLogo:(UIImage *)image {
     NSData *imgData = [UIImage turnsImaegDataByImage:image];
     NSString *fileName = @"image";
-    [UPLOAD_MANAGER configWithfilePath:@"klx"];
+    [UPLOAD_MANAGER configWithfilePath:@"/user/"];
     [[KSUploadManager shareInstance] uploadImage:imgData fileName:fileName successCallback:^(NSMutableArray * _Nonnull fileUrlArray) {
         NSString *avatarUrl = [fileUrlArray lastObject];
         [self modifyUserMessage:avatarUrl gender:nil];

+ 0 - 1
KulexiuForTeacher/KulexiuForTeacher/Module/Mine/Setting/DeleteAccount/Controller/AccountDeleteViewController.m

@@ -12,7 +12,6 @@
 #import "AppDelegate.h"
 #import "CustomNavViewController.h"
 #import "JPUSHService.h"
-#import <KSToolLibrary/NSString+phone.h>
 
 #import "KSNewConfirmAlertView.h"
 

+ 1 - 1
KulexiuForTeacher/KulexiuForTeacher/Module/TXClassRoom/Controller/TXClassroomViewController.m

@@ -1948,7 +1948,7 @@
         [imageDataArray addObject:imgData];
     }
     
-    [UPLOAD_MANAGER configWithfilePath:@"klx"];
+    [UPLOAD_MANAGER configWithfilePath:@"/classroom/"];
     [UPLOAD_MANAGER mutilUploadImage:imageDataArray fileName:@"onlineClassroomImg" successCallback:^(NSMutableArray * _Nonnull fileUrlArray) {
         NSMutableArray *urlArray = [NSMutableArray array];
         for (NSString *url in fileUrlArray) {

+ 0 - 22
KulexiuForTeacher/KulexiuForTeacher/Module/TXClassRoom/Model/Util/Category/UIView+MBProgressHUD.h

@@ -1,22 +0,0 @@
-//
-//  UIView+MBProgressHUD.h
-//  SealClass
-//
-//  Created by liyan on 2019/3/12.
-//  Copyright © 2019年 RongCloud. All rights reserved.
-//
-
-#import <UIKit/UIKit.h>
-#import <MBProgressHUD/MBProgressHUD.h>
-
-NS_ASSUME_NONNULL_BEGIN
-
-@interface UIView (MBProgressHUD)
-
-@property (weak, nonatomic) MBProgressHUD *HUD;
-
-- (void)showHUDMessage:(NSString *)message;
-
-@end
-
-NS_ASSUME_NONNULL_END

+ 0 - 69
KulexiuForTeacher/KulexiuForTeacher/Module/TXClassRoom/Model/Util/Category/UIView+MBProgressHUD.m

@@ -1,69 +0,0 @@
-//
-//  UIView+MBProgressHUD.m
-//  SealClass
-//
-//  Created by liyan on 2019/3/12.
-//  Copyright © 2019年 RongCloud. All rights reserved.
-//
-
-#import "UIView+MBProgressHUD.h"
-
-#define MBPHUD_EXECUTE(...) \
-__weak typeof(self) weakself = self; \
-[self hideHUDCompletion:^{ \
-[weakself.HUD removeFromSuperview]; \
-__VA_ARGS__ \
-}];
-
-CGFloat const MBPHUDFontSize = 12;
-CGFloat const MBPHUDShowTime = 2.0f;
-
-@implementation UIView (MBProgressHUD)
-
-@dynamic HUD;
-
-- (MBProgressHUD *)HUD {
-    return [MBProgressHUD HUDForView:self];
-}
-
-- (MBProgressHUD *)instanceHUD {
-    MBProgressHUD *HUD = [[MBProgressHUD alloc]initWithView:self];
-    [self setupHUD:HUD];
-    return HUD;
-}
-
-- (void)showHUDMessage:(NSString *)message {
-    MBPHUD_EXECUTE({
-        MBProgressHUD *HUD = [weakself instanceHUD];
-        [weakself addSubview:HUD];
-        [weakself bringSubviewToFront:HUD];
-        HUD.mode = MBProgressHUDModeText;
-        HUD.label.text = message;
-        [HUD showAnimated:YES];
-        [HUD hideAnimated:YES afterDelay:MBPHUDShowTime];
-    })
-}
-
-- (void)hideHUDCompletion:(nullable void(^)(void))completion {
-    if (!self.HUD) { if (completion) completion(); return; }
-    self.HUD.completionBlock = completion;
-    [self.HUD hideAnimated:YES];
-}
-
-- (void)setupHUD:(MBProgressHUD *)HUD {
-    HUD.removeFromSuperViewOnHide = YES;
-    HUD.userInteractionEnabled = NO;
-    HUD.square = NO;
-    HUD.offset = CGPointMake(0, (- (kScreenHeight / 2 - 64 - 17)));
-    HUD.margin = 7;
-    HUD.bezelView.color = HexRGB(0x070809);
-    HUD.bezelView.layer.cornerRadius = 14;
-    HUD.contentColor = HexRGB(0xFFFFFF);
-    HUD.bezelView.style = MBProgressHUDBackgroundStyleSolidColor;
-    HUD.bezelView.backgroundColor = HexRGBAlpha(0x000000, 0.8f);
-    HUD.label.font = [UIFont systemFontOfSize:MBPHUDFontSize];
-    HUD.label.numberOfLines = 3;
-}
-
-
-@end

+ 1 - 1
KulexiuForTeacher/KulexiuForTeacher/Module/TXClassRoom/View/NewWhiteboard/KSNewWhiteBoard.m

@@ -462,7 +462,7 @@
     NSData *imgData = [UIImage compressImage:image maxLength:5];
     
     NSString *fileName = @"whiteboardImage";
-    [UPLOAD_MANAGER configWithfilePath:@"klx"];
+    [UPLOAD_MANAGER configWithfilePath:@"/whiteboard/"];
     [UPLOAD_MANAGER uploadImage:imgData fileName:fileName successCallback:^(NSMutableArray * _Nonnull fileUrlArray) {
         NSString *imageUrl = [fileUrlArray lastObject];
         [self insertImageWithUrl:imageUrl size:image.size];

+ 1 - 1
KulexiuForTeacher/KulexiuForTeacher/Module/TXClassRoom/View/NewWhiteboard/KSWhiteboardView.m

@@ -794,7 +794,7 @@
     NSData *imgData = [UIImage compressImage:image maxLength:5];
     
     NSString *fileName = @"whiteboardImage";
-    [UPLOAD_MANAGER configWithfilePath:@"klx"];
+    [UPLOAD_MANAGER configWithfilePath:@"/whiteboard/"];
     [UPLOAD_MANAGER uploadImage:imgData fileName:fileName successCallback:^(NSMutableArray * _Nonnull fileUrlArray) {
         NSString *imageUrl = [fileUrlArray lastObject];
         [self insertImageWithUrl:imageUrl size:image.size];