pull/66/head
kunfei 5 years ago
parent 30ddbec3a6
commit 7629542e1d
  1. 7
      app/src/main/java/io/legado/app/ui/about/DonateActivity.kt

@ -75,9 +75,10 @@ class DonateActivity : BaseActivity(R.layout.activity_donate) {
private fun aliDonate(context: Context) { private fun aliDonate(context: Context) {
try { try {
val qrCode = URLEncoder.encode("tsx06677nwdk3javroq4ef0", "utf-8") var qrCode = URLEncoder.encode("https://qr.alipay.com/tsx06677nwdk3javroq4ef0", "utf-8")
val aliPayQr = qrCode = "qrcode=$qrCode%3F_s%3Dweb-other"
"alipayqr://platformapi/startapp?saId=10000007&qrcode=https://qr.alipay.com/$qrCode" qrCode = "saId=10000007&$qrCode&_t=${System.currentTimeMillis()}"
val aliPayQr = "alipayqr://platformapi/startapp?$qrCode"
val intent = Intent(Intent.ACTION_VIEW, Uri.parse(aliPayQr)) val intent = Intent(Intent.ACTION_VIEW, Uri.parse(aliPayQr))
context.startActivity(intent) context.startActivity(intent)
} catch (e: Exception) { } catch (e: Exception) {

Loading…
Cancel
Save