mirror of
https://github.com/PaiGramTeam/GetToken.git
synced 2024-11-21 22:48:07 +00:00
fix: copy device token
This commit is contained in:
parent
5050b2946e
commit
aadb4e38b2
@ -79,7 +79,7 @@ private fun TokenActivity.Content(deviceInfo: DeviceInfo, accountInfo: AccountIn
|
|||||||
Column(
|
Column(
|
||||||
modifier = Modifier.padding(15.dp)
|
modifier = Modifier.padding(15.dp)
|
||||||
) {
|
) {
|
||||||
var grantSToken by remember { mutableStateOf(false) }
|
var grantSToken by remember { mutableStateOf(true) }
|
||||||
var showDoneIcon by remember { mutableStateOf(false) }
|
var showDoneIcon by remember { mutableStateOf(false) }
|
||||||
CustomCheckBox(
|
CustomCheckBox(
|
||||||
checked = true,
|
checked = true,
|
||||||
@ -100,8 +100,8 @@ private fun TokenActivity.Content(deviceInfo: DeviceInfo, accountInfo: AccountIn
|
|||||||
} // TODO: More description
|
} // TODO: More description
|
||||||
)
|
)
|
||||||
CustomCheckBox(
|
CustomCheckBox(
|
||||||
checked = grantSToken,
|
checked = true,
|
||||||
onCheckedChange = { v -> grantSToken = v },
|
onCheckedChange = {},
|
||||||
name = "SToken",
|
name = "SToken",
|
||||||
permissions = buildAnnotatedString {
|
permissions = buildAnnotatedString {
|
||||||
appendLine("此令牌可以用于:")
|
appendLine("此令牌可以用于:")
|
||||||
@ -126,8 +126,8 @@ private fun TokenActivity.Content(deviceInfo: DeviceInfo, accountInfo: AccountIn
|
|||||||
put("mid", accountInfo.mid)
|
put("mid", accountInfo.mid)
|
||||||
put("stoken", accountInfo.sToken)
|
put("stoken", accountInfo.sToken)
|
||||||
}
|
}
|
||||||
put("device_id", deviceInfo.id)
|
put("x-rpc-device_id", deviceInfo.id)
|
||||||
put("device_fp", deviceInfo.fingerprint)
|
put("x-rpc-device_fp", deviceInfo.fingerprint)
|
||||||
}.map { (k, v) -> "$k=$v" }.joinToString(";")
|
}.map { (k, v) -> "$k=$v" }.joinToString(";")
|
||||||
val clip = ClipData.newPlainText(null, authStr)
|
val clip = ClipData.newPlainText(null, authStr)
|
||||||
getSystemService<ClipboardManager>()!!.setPrimaryClip(clip)
|
getSystemService<ClipboardManager>()!!.setPrimaryClip(clip)
|
||||||
|
Loading…
Reference in New Issue
Block a user