chore: 上线前一些变更
This commit is contained in:
parent
b118b91001
commit
8c4713d92e
@ -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
|
||||
|
||||
@ -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 {
|
||||
|
||||
@ -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
|
||||
}
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user