String+Urls.swift 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. //
  2. // String+Urls.swift
  3. // Lanu
  4. //
  5. // Created by OneeChan on 2025/12/24.
  6. //
  7. import Foundation
  8. extension String {
  9. var isDeeplink: Bool {
  10. lowercased().starts(with: LNDeeplinkUrls.appScheme)
  11. }
  12. static var webUrlHost: String {
  13. LNAppConfig.shared.curEnv == .test ? "https://test-web.gami.vip" : "https://web.gami.vip"
  14. }
  15. static var privacyUrl: String = {
  16. "\(webUrlHost)/about/privacyPolicy"
  17. }()
  18. static var serviceUrl: String = {
  19. "\(webUrlHost)/about/termsOfService"
  20. }()
  21. static var communityUrl: String = {
  22. "\(webUrlHost)/about/communityGuideline"
  23. }()
  24. static var deleteAccountUrl: String = {
  25. "\(webUrlHost)/mine/cancellation"
  26. }()
  27. static var walletHistoryUrl: String = {
  28. "\(webUrlHost)/wallet/record"
  29. }()
  30. static var beanUrl: String = {
  31. "\(webUrlHost)/wallet/wd"
  32. }()
  33. static var orderQRShareUrl: String = {
  34. "\(webUrlHost)/user/category"
  35. }()
  36. static var profileShareUrl: String = {
  37. "\(webUrlHost)/user/profile"
  38. }()
  39. static var joinUsUrl: String = {
  40. "\(webUrlHost)/native/playmate/apply"
  41. }()
  42. }