mirror of
https://github.com/lizongying/my-tv.git
synced 2026-10-26 22:26:29 +08:00
test sign
This commit is contained in:
Binary file not shown.
Binary file not shown.
@@ -43,6 +43,8 @@ class MainActivity : FragmentActivity() {
|
|||||||
.hide(infoFragment)
|
.hide(infoFragment)
|
||||||
.commit()
|
.commit()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Log.i(TAG, "Signature ${getAppSignature()}")
|
||||||
}
|
}
|
||||||
|
|
||||||
fun switchInfoFragment(tv: TV) {
|
fun switchInfoFragment(tv: TV) {
|
||||||
|
|||||||
@@ -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", "")
|
var guid = sharedPref?.getString("guid", "")
|
||||||
if (guid == "") {
|
if (guid == null || guid.length < 18) {
|
||||||
guid = generateGuid()
|
guid = generateGuid()
|
||||||
// with(sharedPref!!.edit()) {
|
with(sharedPref!!.edit()) {
|
||||||
// putString("guid", guid)
|
putString("guid", guid)
|
||||||
// apply()
|
apply()
|
||||||
// }
|
}
|
||||||
}
|
}
|
||||||
return guid
|
return guid
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user