diff --git a/wake/View/Blind/JoinModal.swift b/wake/View/Blind/JoinModal.swift index 04822ff..222faef 100644 --- a/wake/View/Blind/JoinModal.swift +++ b/wake/View/Blind/JoinModal.swift @@ -164,6 +164,9 @@ struct JoinModal: View { HStack(alignment: .center) { Button(action: { // Action for Terms of Service + if let url = URL(string: "https://memorywake.com/privacy-policy") { + UIApplication.shared.open(url) + } }) { Text("Terms of Service") .font(.system(size: 12, weight: .regular)) @@ -175,7 +178,10 @@ struct JoinModal: View { .frame(width: 1, height: 16) .padding(.vertical, 4) Button(action: { - // Action for Privacy Policy + // 打开网页 + if let url = URL(string: "https://memorywake.com/privacy-policy") { + UIApplication.shared.open(url) + } }) { Text("Privacy Policy") .font(.system(size: 12, weight: .regular)) @@ -188,8 +194,11 @@ struct JoinModal: View { .padding(.vertical, 4) Button(action: { // Action for Restore Purchase + if let url = URL(string: "https://memorywake.com/privacy-policy") { + UIApplication.shared.open(url) + } }) { - Text("Restore Purchase") + Text("AI Usage Guidelines") .font(.system(size: 12, weight: .regular)) .foregroundColor(.themeTextMessage) .underline() // Add underline diff --git a/wake/View/Login/Login.swift b/wake/View/Login/Login.swift index d14d05f..84083d7 100644 --- a/wake/View/Login/Login.swift +++ b/wake/View/Login/Login.swift @@ -113,7 +113,9 @@ struct LoginView: View { HStack(spacing: 8) { Button("Service") { - openURL("https://yourwebsite.com/terms") + if let url = URL(string: "https://memorywake.com/privacy-policy") { + UIApplication.shared.open(url) + } } .font(.caption2) .foregroundColor(.themeTextMessageMain) @@ -123,7 +125,9 @@ struct LoginView: View { .font(.caption) Button("Privacy Policy") { - openURL("https://yourwebsite.com/privacy") + if let url = URL(string: "https://memorywake.com/privacy-policy") { + UIApplication.shared.open(url) + } } .font(.caption2) .foregroundColor(.themeTextMessageMain) diff --git a/wake/View/Owner/AboutUsView.swift b/wake/View/Owner/AboutUsView.swift index 16f3140..1bf4b18 100644 --- a/wake/View/Owner/AboutUsView.swift +++ b/wake/View/Owner/AboutUsView.swift @@ -48,7 +48,7 @@ struct AboutUsView: View { title: "Terms of Service", action: { withAnimation { - if let url = URL(string: "https://example.com/terms") { + if let url = URL(string: "https://memorywake.com/privacy-policy") { UIApplication.shared.open(url) } } @@ -59,7 +59,7 @@ struct AboutUsView: View { title: "Privacy Policy", action: { withAnimation { - if let url = URL(string: "https://example.com/terms") { + if let url = URL(string: "https://memorywake.com/privacy-policy") { UIApplication.shared.open(url) } } @@ -70,7 +70,7 @@ struct AboutUsView: View { title: "AI Usage Guidelines", action: { withAnimation { - if let url = URL(string: "https://example.com/terms") { + if let url = URL(string: "https://memorywake.com/privacy-policy") { UIApplication.shared.open(url) } }