冷启动跳转添加 KEY_FLUWX_REQUEST_INFO_BUNDLE 传值,handleRequestInfoFromIntent 逻辑修复

This commit is contained in:
LiHang
2022-05-26 13:52:30 +08:00
parent e3b02b0bb9
commit dadf920c3f

View File

@ -72,6 +72,9 @@ object FluwxRequestHandler {
is ShowMessageFromWX.Req -> {
try {
val intent = Intent(Intent.ACTION_VIEW, Uri.parse("wechatextmsg://${activity.packageName}/?extmsg=${baseReq.message.messageExt}"))
val bundle = Bundle()
baseReq.toBundle(bundle)
intent.putExtra(KEY_FLUWX_REQUEST_INFO_BUNDLE, bundle)
activity.startActivity(intent)
activity.finish()
WXAPiHandler.coolBoot = false