Browse Source

上传修改cdn域名

Steven 1 year ago
parent
commit
ba0726d742

+ 8 - 0
KulexiuForStudent/KulexiuForStudent/Common/Base/KSBaseWKWebViewController.m

@@ -235,6 +235,14 @@ typedef NS_ENUM(NSInteger, CHOOSETYPE) {
         [_myWebView addObserver:self forKeyPath:@"estimatedProgress" options:NSKeyValueObservingOptionNew context:nil];
         
         [self.view addSubview:_myWebView];
+        
+//        // OC
+//        if (@available(iOS 16.4, *)) {
+//            _myWebView.inspectable = true;
+//        } else {
+//            // Fallback on earlier versions
+//        }
+        
         [_myWebView mas_makeConstraints:^(MASConstraintMaker *make) {
             make.left.right.mas_equalTo(self.view);
             make.top.mas_equalTo(self.view.mas_top);

+ 1 - 1
KulexiuForStudent/KulexiuForStudent/Common/Base/KSUploadManager.m

@@ -53,7 +53,7 @@
 
 - (void)configTXCloud {
     QCloudServiceConfiguration *configuration = [QCloudServiceConfiguration new];
-    QCloudCOSXMLEndPoint *endpoint = [[QCloudCOSXMLEndPoint alloc] init];
+    QCloudCOSXMLEndPoint *endpoint = [[QCloudCOSXMLEndPoint alloc] initWithLiteralURL:[NSURL URLWithString:@"oss.dayaedu.com"]];
     endpoint.regionName = @"ap-nanjing";
     // 适使用HTTPS
     endpoint.useHTTPS = YES;

+ 2 - 0
KulexiuForStudent/KulexiuForStudent/Common/Define/KSDomain.h

@@ -22,6 +22,8 @@
 #define SEALCLASSHOST (@"https://dev.colexiu.com/api-classroom")
 #define WEBHOST (@"https://dev.colexiu.com/student")
 #define TENANT_WEBHOST (@"https://dev.colexiu.com/tenant")
+//#define WEBHOST (@"http://192.168.3.220:5000")
+//#define TENANT_WEBHOST (@"http://192.168.3.220:5000/tenant.html")
 #define SOCKET_URL (@"wss://dev.colexiu.com/audioAnalysis")
 #define JSPUSH_ENVIRONMENT (NO)
 #define RCIM_KEY (@"0vnjpoad0jbdz")

+ 1 - 0
KulexiuForStudent/KulexiuForStudent/InstitutionModule/Mine/View/INSSettingBodyView.m

@@ -39,6 +39,7 @@
     }
     else {
         [self.uesrAvatar setImage:[UIImage imageNamed:CLIENT_USERDEFAULT_LOGO]];
+        self.preDisplayImage = [UIImage imageNamed:CLIENT_USERDEFAULT_LOGO];
     }
     self.userName.text = [NSString returnNoNullStringWithString:info.username];
     self.phoneLabel.text = [NSString returnNoNullStringWithString:info.phone];

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

@@ -89,10 +89,10 @@
         [self.bodyView.userAvatal displayImageWithUrl:[NSURL URLWithString:[self.mineInfo.heardUrl getUrlEndcodeString]] placeholder:self.preDisplayImage defaultImage:[UIImage imageNamed:USERDEFAULT_LOGO] callback:^(UIImage * _Nonnull image) {
             self.preDisplayImage = image;
         }];
-        
     }
     else {
         [self.bodyView.userAvatal setImage:[UIImage imageNamed:USERDEFAULT_LOGO]];
+        self.preDisplayImage = [UIImage imageNamed:USERDEFAULT_LOGO];
     }
     self.bodyView.nickNameLabel.text = [NSString returnNoNullStringWithString:self.mineInfo.username];
     NSString *userSex = @"";