优化下这段代码function onMenuItemClicktitle if title==加群 then import androidnetUri import androidcontentIntent 群号=12345678 activitystartActivityIntentIntentACTION_VIEWUriparsemqqapicardshow
function onMenuItemClick(title) if title == "加群" then import "android.content.Intent" import "android.net.Uri" local groupNumber = "12345678" local uri = Uri.parse("mqqapi://card/show_pslcard?src_type=internal&version=1&uin="..groupNumber.."&card_type=group&source=qrcode") local intent = Intent(Intent.ACTION_VIEW, uri) activity.startActivity(intent) end end
原文地址: https://www.cveoy.top/t/topic/bsq9 著作权归作者所有。请勿转载和采集!