chore: 上线前一些变更

This commit is contained in:
Junhui Chen 2025-09-04 18:10:53 +08:00
parent b118b91001
commit 8c4713d92e
5 changed files with 50 additions and 5 deletions

View File

@ -1,5 +1,5 @@
{ {
"originHash" : "e8f130fe30ac6cdc940ef06ee1e8535e9f46ffee6aeead1722b9525562f6ce08", "originHash" : "7ea295cc5e3eb8ef644b89ce2b47a7600994b67c8582ee354b643cd63250740d",
"pins" : [ "pins" : [
{ {
"identity" : "alamofire", "identity" : "alamofire",
@ -9,6 +9,51 @@
"revision" : "513364f870f6bfc468f9d2ff0a95caccc10044c5", "revision" : "513364f870f6bfc468f9d2ff0a95caccc10044c5",
"version" : "5.10.2" "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 "version" : 3

View File

@ -3,7 +3,7 @@ import Foundation
/// API /// API
public enum APIConfig { public enum APIConfig {
/// API URL /// 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 /// token - Keychain
public static var authToken: String { public static var authToken: String {

View File

@ -11,7 +11,7 @@ import Foundation
//enum AnyCodable: Codable {} //enum AnyCodable: Codable {}
func passwordLogin(username: String, password: String) { 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") print("❌ 无效的URL")
return return
} }

View File

@ -7,7 +7,7 @@ struct LoginResponse: Codable {
func callLoginAPI() { func callLoginAPI() {
// 1. URL // 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 { guard let url = URL(string: urlString) else {
print("Invalid URL") print("Invalid URL")
return return

View File

@ -103,7 +103,7 @@ struct LoginView: View {
.foregroundColor(.themeTextMessage) .foregroundColor(.themeTextMessage)
Button("Terms of") { Button("Terms of") {
openURL("https://yourwebsite.com/terms") openURL("https://memorywake.com/privacy-policy") // FIXME
} }
.font(.caption2) .font(.caption2)
.foregroundColor(.themeTextMessageMain) .foregroundColor(.themeTextMessageMain)