stock.exdev.co.kr로 접속 url 변경
This commit is contained in:
@@ -34,8 +34,8 @@ class ChartFragment : Fragment() {
|
||||
|
||||
private fun getFrontendBaseUrl(): String {
|
||||
val prefs = requireActivity().getSharedPreferences("app_prefs", Context.MODE_PRIVATE)
|
||||
return prefs.getString("frontend_url", "http://exdev.co.kr/mobile/chart")
|
||||
?: "http://exdev.co.kr/mobile/chart"
|
||||
return prefs.getString("frontend_url", "https://stock.exdev.co.kr/mobile/chart")
|
||||
?: "https://stock.exdev.co.kr/mobile/chart"
|
||||
}
|
||||
|
||||
/** 알림에서 저장한 심볼이 있으면 쿼리 gaSymbol 붙이고 prefs 에서 제거 (프론트 연동 시 사용). */
|
||||
|
||||
+2
-2
@@ -39,8 +39,8 @@ class SettingsFragment : Fragment() {
|
||||
binding.switchDarkMode.isChecked = prefs.getBoolean("dark_mode", false)
|
||||
// Frontend URL 설정 (차트 페이지)
|
||||
// 로컬 Docker: http://192.168.219.106/mobile/chart
|
||||
// 운영: https://exdev.co.kr/mobile/chart
|
||||
val defaultFrontendUrl = "https://exdev.co.kr/mobile/chart"
|
||||
// 운영: https://stock.exdev.co.kr/mobile/chart
|
||||
val defaultFrontendUrl = "https://stock.exdev.co.kr/mobile/chart"
|
||||
binding.etApiServer.setText(prefs.getString("frontend_url", defaultFrontendUrl))
|
||||
binding.etApiBackend.setText(prefs.getString("api_base_url", ""))
|
||||
|
||||
|
||||
@@ -24,8 +24,8 @@ object ApiPrefs {
|
||||
if (!b.endsWith("/api")) b = "$b/api"
|
||||
return "$b/"
|
||||
}
|
||||
val front = p.getString(KEY_FRONTEND, "https://exdev.co.kr/mobile/chart")
|
||||
?: "https://exdev.co.kr/mobile/chart"
|
||||
val front = p.getString(KEY_FRONTEND, "https://stock.exdev.co.kr/mobile/chart")
|
||||
?: "https://stock.exdev.co.kr/mobile/chart"
|
||||
val uri = Uri.parse(front)
|
||||
val scheme = uri.scheme ?: "https"
|
||||
val host = uri.host ?: "exdev.co.kr"
|
||||
|
||||
Reference in New Issue
Block a user