From 8c4713d92e89fe471836dafc9a9001c4fe915659 Mon Sep 17 00:00:00 2001 From: Junhui Chen Date: Thu, 4 Sep 2025 18:10:53 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E4=B8=8A=E7=BA=BF=E5=89=8D=E4=B8=80?= =?UTF-8?q?=E4=BA=9B=E5=8F=98=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../xcshareddata/swiftpm/Package.resolved | 47 ++++++++++++++++++- wake/Utils/APIConfig.swift | 2 +- wake/Utils/LoginURLSession.swift | 2 +- wake/Utils/PasswordLogin.swift | 2 +- wake/View/Login/Login.swift | 2 +- 5 files changed, 50 insertions(+), 5 deletions(-) diff --git a/wake.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved b/wake.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved index 8c6ea58..9e0b0e9 100644 --- a/wake.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved +++ b/wake.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved @@ -1,5 +1,5 @@ { - "originHash" : "e8f130fe30ac6cdc940ef06ee1e8535e9f46ffee6aeead1722b9525562f6ce08", + "originHash" : "7ea295cc5e3eb8ef644b89ce2b47a7600994b67c8582ee354b643cd63250740d", "pins" : [ { "identity" : "alamofire", @@ -9,6 +9,51 @@ "revision" : "513364f870f6bfc468f9d2ff0a95caccc10044c5", "version" : "5.10.2" } + }, + { + "identity" : "cocoalumberjack", + "kind" : "remoteSourceControl", + "location" : "https://github.com/CocoaLumberjack/CocoaLumberjack.git", + "state" : { + "revision" : "a9ed4b6f9bdedce7d77046f43adfb8ce1fd54114", + "version" : "3.9.0" + } + }, + { + "identity" : "lottie-spm", + "kind" : "remoteSourceControl", + "location" : "https://github.com/airbnb/lottie-spm.git", + "state" : { + "revision" : "04f2fd18cc9404a0a0917265a449002674f24ec9", + "version" : "4.5.2" + } + }, + { + "identity" : "svgkit", + "kind" : "remoteSourceControl", + "location" : "https://github.com/SVGKit/SVGKit.git", + "state" : { + "revision" : "58152b9f7c85eab239160b36ffdfd364aa43d666", + "version" : "3.0.0" + } + }, + { + "identity" : "swift-log", + "kind" : "remoteSourceControl", + "location" : "https://github.com/apple/swift-log", + "state" : { + "revision" : "ce592ae52f982c847a4efc0dd881cc9eb32d29f2", + "version" : "1.6.4" + } + }, + { + "identity" : "waterfallgrid", + "kind" : "remoteSourceControl", + "location" : "https://github.com/paololeonardi/WaterfallGrid.git", + "state" : { + "revision" : "c7c08652c3540adf8e48409c351879b4caea7e89", + "version" : "1.1.0" + } } ], "version" : 3 diff --git a/wake/Utils/APIConfig.swift b/wake/Utils/APIConfig.swift index 5b8265b..c9c3401 100644 --- a/wake/Utils/APIConfig.swift +++ b/wake/Utils/APIConfig.swift @@ -3,7 +3,7 @@ import Foundation /// API 配置信息 public enum APIConfig { /// API 基础 URL - public static let baseURL = "https://api-dev.memorywake.com:31274/api/v1" + public static let baseURL = "https://api.memorywake.com:31274/api/v1" /// 认证 token - 从 Keychain 中获取 public static var authToken: String { diff --git a/wake/Utils/LoginURLSession.swift b/wake/Utils/LoginURLSession.swift index 1ddc886..f29d3d8 100644 --- a/wake/Utils/LoginURLSession.swift +++ b/wake/Utils/LoginURLSession.swift @@ -11,7 +11,7 @@ import Foundation //enum AnyCodable: Codable {} func passwordLogin(username: String, password: String) { - guard let url = URL(string: "http://192.168.31.156:31646/api/v1/iam/login/password-login") else { + guard let url = URL(string: "https://api.memorywake.com:31274/api/v1/iam/login/password-login") else { print("❌ 无效的URL") return } diff --git a/wake/Utils/PasswordLogin.swift b/wake/Utils/PasswordLogin.swift index 72e1426..ef26d52 100644 --- a/wake/Utils/PasswordLogin.swift +++ b/wake/Utils/PasswordLogin.swift @@ -7,7 +7,7 @@ struct LoginResponse: Codable { func callLoginAPI() { // 1. 创建 URL - let urlString = "http://192.168.31.156:31646/api/v1/iam/login/password-login" + let urlString = "https://api.memorywake.com:31274/api/v1/iam/login/password-login" guard let url = URL(string: urlString) else { print("Invalid URL") return diff --git a/wake/View/Login/Login.swift b/wake/View/Login/Login.swift index 84083d7..fca68b1 100644 --- a/wake/View/Login/Login.swift +++ b/wake/View/Login/Login.swift @@ -103,7 +103,7 @@ struct LoginView: View { .foregroundColor(.themeTextMessage) Button("Terms of") { - openURL("https://yourwebsite.com/terms") + openURL("https://memorywake.com/privacy-policy") // FIXME } .font(.caption2) .foregroundColor(.themeTextMessageMain)