From 3433f3e9a0254b24cec2836b112267b1af3f9101 Mon Sep 17 00:00:00 2001
From: tj <1378534974@qq.com>
Date: 星期一, 07 四月 2025 10:57:40 +0800
Subject: [PATCH] 1.jks打包相关修改 2.vip续费页面相关修改
---
app/src/main/java/com/example/firstapp/utils/PreferencesManager.kt | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/app/src/main/java/com/example/firstapp/utils/PreferencesManager.kt b/app/src/main/java/com/example/firstapp/utils/PreferencesManager.kt
index 1b08dec..34b85f4 100644
--- a/app/src/main/java/com/example/firstapp/utils/PreferencesManager.kt
+++ b/app/src/main/java/com/example/firstapp/utils/PreferencesManager.kt
@@ -8,6 +8,7 @@
private const val KEY_TOKEN = "user_token"
private const val KEY_PHONE = "user_phone"
private const val KEY_FIRST_INSTALL = "first_install"
+ private const val LAST_LOGIN_PHONE = "last_login_phone"
private lateinit var preferences: SharedPreferences
@@ -46,4 +47,12 @@
fun setFirstInstall(isFirst: Boolean) {
preferences.edit().putBoolean(KEY_FIRST_INSTALL, isFirst).apply()
}
+
+ fun saveLastLoginPhone(phone: String) {
+ preferences.edit().putString(LAST_LOGIN_PHONE, phone).apply()
+ }
+
+ fun getLastLoginPhone(): String {
+ return preferences.getString(LAST_LOGIN_PHONE, "") ?: ""
+ }
}
\ No newline at end of file
--
Gitblit v1.9.3