From 776ce45ef28be5ed65e96fa53418ecc88166b88c Mon Sep 17 00:00:00 2001 From: kunfei Date: Fri, 3 Jan 2020 10:52:50 +0800 Subject: [PATCH] up --- .../main/java/io/legado/app/ui/about/DonateActivity.kt | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/io/legado/app/ui/about/DonateActivity.kt b/app/src/main/java/io/legado/app/ui/about/DonateActivity.kt index 870f85f53..61cf11177 100644 --- a/app/src/main/java/io/legado/app/ui/about/DonateActivity.kt +++ b/app/src/main/java/io/legado/app/ui/about/DonateActivity.kt @@ -75,10 +75,12 @@ class DonateActivity : BaseActivity(R.layout.activity_donate) { private fun aliDonate(context: Context) { try { - var qrCode = URLEncoder.encode("https://qr.alipay.com/tsx06677nwdk3javroq4ef0", "utf-8") - qrCode = "qrcode=$qrCode%3F_s%3Dweb-other" - qrCode = "saId=10000007&$qrCode&_t=${System.currentTimeMillis()}" - val aliPayQr = "alipayqr://platformapi/startapp?$qrCode" + val qrCode = URLEncoder.encode( + "https://qr.alipay.com/fkx03463i8oppupkpsoo1f?_s=Dweb-other", + "utf-8" + ) + val aliPayQr = + "alipayqr://platformapi/startapp?saId=10000007&qrcode=$qrCode&_t=${System.currentTimeMillis()}" val intent = Intent(Intent.ACTION_VIEW, Uri.parse(aliPayQr)) context.startActivity(intent) } catch (e: Exception) {