ソースを参照

【综合】测试环境配置修改

wanjun 6 日 前
コミット
69f29b57be

+ 0 - 4
PDF Office/PDF Master/Class/KMAdvertisement/Config/KMAdvertisementConfig.swift

@@ -114,15 +114,11 @@ import UIKit
     public var language: KMAdvertisementLanguageType = .unknow
     
     func activityBaseURL() -> String {
-#if DEBUG
         if kTestMode == 1 {
             return "http://test-store.kdan.cn:3019"
         } else {
             return "https://store.filmagepro.com:3018"
         }
-#else
-        return "https://store.filmagepro.com:3018"
-#endif
     }
     
     public func initParameters(appName: KMAdvertisementAppNameType, subscribeType:KMAdvertisementSubscribeType, platform: KMAdvertisementPlatformType) {

+ 0 - 4
PDF Office/PDF Master/MemberCenter/KMMemberCenterConfig.swift

@@ -9,14 +9,10 @@ import Cocoa
 
 class KMMemberCenterConfig: NSObject {
     func activityBaseURL() -> String {
-        #if DEBUG
         if kTestMode == 1{
             return "https://test-pdf-pro.kdan.cn"
         } else {
             return "https://pdfmaster.pdfreaderpro.com"
         }
-        #else
-        return "https://pdfmaster.pdfreaderpro.com"
-        #endif
     }
 }

+ 0 - 4
PDF Office/PDF Master/MemberCenter/ViewModel/KMUserInfoVCModel.swift

@@ -141,15 +141,11 @@ class KMUserInfoVCModel: ObservableObject {
      */
     func skipAccountCenter() -> Void {
         var urlPath = ""
-#if DEBUG
         if kTestMode == 1{
             urlPath = "http://test-pdf-pro.kdan.cn:3021/user-center/account-benefits"
         } else {
             urlPath = "https://pdfreaderpro.com/user-center/account-benefits"
         }
-#else
-        urlPath = "https://pdfreaderpro.com/user-center/account-benefits"
-#endif
         NSWorkspace.shared.open(URL(string: urlPath)!)
     }