remove guid store

This commit is contained in:
Li ZongYing 2023-12-18 12:47:21 +08:00
parent 9191d58513
commit 4e3123019d
2 changed files with 8 additions and 8 deletions

View File

@ -114,7 +114,7 @@ class Request(var context: Context) {
tvModel.firstSource() tvModel.firstSource()
} }
} else { } else {
Log.e(TAG, "$title url error") Log.e(TAG, "$title url error $request")
tvModel.firstSource() tvModel.firstSource()
} }
} else { } else {

View File

@ -60,7 +60,7 @@ class YSP(var context: Context) {
sharedPref = (context as MainActivity).getPreferences(Context.MODE_PRIVATE) sharedPref = (context as MainActivity).getPreferences(Context.MODE_PRIVATE)
} }
guid = getGuid() // guid = getGuid()
} }
fun switch(tvModel: TVViewModel): String { fun switch(tvModel: TVViewModel): String {
@ -68,7 +68,7 @@ class YSP(var context: Context) {
cnlid = tvModel.getTV().sid cnlid = tvModel.getTV().sid
defn = "fhd" defn = "fhd"
// guid = getGuid() guid = getGuid()
randStr = getRand() randStr = getRand()
timeStr = getTimeStr() timeStr = getTimeStr()
@ -99,13 +99,13 @@ class YSP(var context: Context) {
} }
private fun getGuid(): String { private fun getGuid(): String {
var guid = sharedPref?.getString("guid", "").toString() // var guid = sharedPref?.getString("guid", "")
if (guid == "") { if (guid == "") {
guid = generateGuid() guid = generateGuid()
with(sharedPref!!.edit()) { // with(sharedPref!!.edit()) {
putString("guid", guid) // putString("guid", guid)
apply() // apply()
} // }
} }
return guid return guid
} }