From 0855b81097dc57cef6147379bcf022d01014e186 Mon Sep 17 00:00:00 2001 From: eggmanQQQ <3671373519@qq.com> Date: Thu, 18 Jul 2024 10:50:15 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E9=99=A4=E8=A2=AB=E6=B3=A8=E9=87=8A?= =?UTF-8?q?=E7=9A=84=20debug=20=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yinmeng-ios/AppDelegate.swift | 3 +-- yinmeng-ios/Base/Utils/AppKeys.swift | 14 +++++++------- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/yinmeng-ios/AppDelegate.swift b/yinmeng-ios/AppDelegate.swift index 5a83f58..c198f27 100644 --- a/yinmeng-ios/AppDelegate.swift +++ b/yinmeng-ios/AppDelegate.swift @@ -11,8 +11,7 @@ import NSObject_Rx import NIMSDK @main class AppDelegate: UIResponder, UIApplicationDelegate { -var window: UIWindow? - + var window: UIWindow? func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { UIApplication.shared.applicationIconBadgeNumber = 0 diff --git a/yinmeng-ios/Base/Utils/AppKeys.swift b/yinmeng-ios/Base/Utils/AppKeys.swift index 6363410..6d71bdb 100644 --- a/yinmeng-ios/Base/Utils/AppKeys.swift +++ b/yinmeng-ios/Base/Utils/AppKeys.swift @@ -7,15 +7,15 @@ import Foundation enum AppKeys { -//#if DEBUG -// static let nimAppid = "5d5a833a2d0ff1304a5d8bed53d2af5b" -// static let api = "http://beta.api.ymlive.fun/" -// static let agoraKey = "5b4d929b6c4e4af190550c4a2ec5cd4c" -// static let H5_URL = "http://beta.api.ymlive.fun" -//#else +#if DEBUG + static let nimAppid = "5d5a833a2d0ff1304a5d8bed53d2af5b" + static let api = "http://beta.api.ymlive.fun/" + static let agoraKey = "5b4d929b6c4e4af190550c4a2ec5cd4c" + static let H5_URL = "http://beta.api.ymlive.fun" +#else static let nimAppid = "5e76ec47632d86c30ce18eabfa332b6a" static let api = "https://api.ymlive.fun/" static let agoraKey = "5b4d929b6c4e4af190550c4a2ec5cd4c" static let H5_URL = "https://h5.ymlive.fun" -//#endif +#endif }