Quellcode durchsuchen

下载链接处理url code

Steven vor 1 Jahr
Ursprung
Commit
45e3e98bd9

+ 4 - 0
KulexiuForStudent/KulexiuForStudent/Common/MediaMerge/AudioMerge/KSMediaMergeView.m

@@ -1169,6 +1169,8 @@
  通知 delegate 取消裁剪图像。
  */
 - (void)imageCropViewControllerDidCancelCrop:(RSKImageCropViewController *)controller {
+    self.mediaManager.baseCtrl.zh_statusBarHidden = NO;
+
     if (self.isChooseVideoCover) {
         self.isChooseVideoCover = NO;
     }
@@ -1179,6 +1181,8 @@
  通知 delegate 原始图像已经被裁剪。此外,还提供了一个裁剪矩形和用于生成图像的旋转角度。
  */
 - (void)imageCropViewController:(RSKImageCropViewController *)controller didCropImage:(UIImage *)croppedImage usingCropRect:(CGRect)cropRect rotationAngle:(CGFloat)rotationAngle {
+    self.mediaManager.baseCtrl.zh_statusBarHidden = NO;
+
 //    croppedImage
     if (self.isChooseVideoCover) {
         self.isChooseVideoCover = NO;

+ 4 - 4
KulexiuForStudent/KulexiuForStudent/Common/Tools/VoNetworking/VoNetWorking.m

@@ -161,7 +161,7 @@ static NSTimeInterval   requestTimeout = 15.0f;  // 超时时间
     if (responseObj && cache) {
         if (successBlock) successBlock(responseObj);
     }
-    url = [url stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSet URLQueryAllowedCharacterSet]];
+    url = [url getUrlEndcodeString];
     session = [manager GET:url
                 parameters:params
                    headers:nil
@@ -222,7 +222,7 @@ static NSTimeInterval   requestTimeout = 15.0f;  // 超时时间
     if (responseObj && cache) {
         if (successBlock) successBlock(responseObj);
     }
-    url = [url stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSet URLQueryAllowedCharacterSet]];
+    url = [url getUrlEndcodeString];
     session = [manager POST:url
                  parameters:params
                     headers:nil
@@ -276,7 +276,7 @@ static NSTimeInterval   requestTimeout = 15.0f;  // 超时时间
         if (failBlock) failBlock(YQ_ERROR);
         return session;
     }
-    url = [url stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSet URLQueryAllowedCharacterSet]];
+    url = [url getUrlEndcodeString];
     __weak typeof(manager) weakManager = manager;
     session = [manager POST:url
                  parameters:parameters
@@ -407,7 +407,7 @@ static NSTimeInterval   requestTimeout = 15.0f;  // 超时时间
     NSString *type;
     NSArray *subStringArr;
     __block VoURLSessionTask *session = nil;
-    url = [url stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSet URLQueryAllowedCharacterSet]];
+    url = [url getUrlEndcodeString];
     NSURL *fileUrl = [[VoCacheManager shareManager] getDownloadDataFromCacheWithRequestUrl:url];
     
     if (fileUrl) {

+ 3 - 0
KulexiuForStudent/KulexiuForStudent/InstitutionModule/Mine/Controller/INSSettingViewController.m

@@ -299,6 +299,7 @@
  通知 delegate 取消裁剪图像。
  */
 - (void)imageCropViewControllerDidCancelCrop:(RSKImageCropViewController *)controller {
+    self.zh_statusBarHidden = NO;
 
     [controller.navigationController dismissViewControllerAnimated:YES completion:nil];
 }
@@ -307,6 +308,8 @@
  通知 delegate 原始图像已经被裁剪。此外,还提供了一个裁剪矩形和用于生成图像的旋转角度。
  */
 - (void)imageCropViewController:(RSKImageCropViewController *)controller didCropImage:(UIImage *)croppedImage usingCropRect:(CGRect)cropRect rotationAngle:(CGFloat)rotationAngle {
+    self.zh_statusBarHidden = NO;
+
 //    croppedImage
     [self updateWithUserLogo:croppedImage];
     [controller.navigationController dismissViewControllerAnimated:YES completion:nil];

+ 3 - 0
KulexiuForStudent/KulexiuForStudent/Module/Mine/Setting/Controller/UserSettingViewController.m

@@ -348,6 +348,7 @@
  通知 delegate 取消裁剪图像。
  */
 - (void)imageCropViewControllerDidCancelCrop:(RSKImageCropViewController *)controller {
+    self.zh_statusBarHidden = NO;
 
     [controller.navigationController dismissViewControllerAnimated:YES completion:nil];
 }
@@ -356,6 +357,8 @@
  通知 delegate 原始图像已经被裁剪。此外,还提供了一个裁剪矩形和用于生成图像的旋转角度。
  */
 - (void)imageCropViewController:(RSKImageCropViewController *)controller didCropImage:(UIImage *)croppedImage usingCropRect:(CGRect)cropRect rotationAngle:(CGFloat)rotationAngle {
+    self.zh_statusBarHidden = NO;
+
 //    croppedImage
     [self updateWithUserLogo:croppedImage];
     [controller.navigationController dismissViewControllerAnimated:YES completion:nil];

+ 0 - 1
KulexiuForStudent/KulexiuForStudent/Module/Mine/Works/Controller/KSDraftMergeViewController.m

@@ -8,7 +8,6 @@
 #import "KSDraftMergeViewController.h"
 #import "KSMediaMergeView.h"
 #import "AppDelegate+AppService.h"
-#import "UIViewController+zhStatusBarStyle.h"
 #import "UIDevice+TFDevice.h"
 
 @interface KSDraftMergeViewController ()

+ 1 - 1
KulexiuForStudent/KulexiuForStudent/Module/Mine/Works/View/MusicPublistAlert.m

@@ -90,7 +90,7 @@
 
 - (void)evaluateMusicName:(NSString *)musicName userName:(NSString *)userName musicImage:(NSString *)musicImage {
     self.publishContainView.musicName.text = [NSString returnNoNullStringWithString:musicName];
-    [self.publishContainView.musicImage sd_setImageWithURL:[NSURL URLWithString:[musicImage getUrlEndcodeString]] placeholderImage:[UIImage imageNamed:@"music_placeholder"]];
+    [self.publishContainView.musicImage sd_setImageWithURL:[NSURL URLWithString:[musicImage getUrlEndcodeString]] placeholderImage:[UIImage imageNamed:@"pub_music_placeholder"]];
     self.publishContainView.userName.text = [NSString returnNoNullStringWithString:userName];
 }
 

+ 0 - 1
KulexiuForStudent/KulexiuForStudent/Module/TXClassRoom/Controller/TXClassroomViewController.m

@@ -25,7 +25,6 @@
 #import "LocalRenderManager.h"
 #import "NSDate+Transform.h"
 
-#import "UIViewController+zhStatusBarStyle.h"
 #import "KSTipsView.h"
 
 #import "ClassroomTimerManager.h"