mirror of
https://github.com/OpenFlutter/fluwx.git
synced 2025-05-19 16:26:09 +08:00
冷启动跳转添加 KEY_FLUWX_REQUEST_INFO_BUNDLE 传值,handleRequestInfoFromIntent 逻辑修复
This commit is contained in:
@ -72,6 +72,9 @@ object FluwxRequestHandler {
|
|||||||
is ShowMessageFromWX.Req -> {
|
is ShowMessageFromWX.Req -> {
|
||||||
try {
|
try {
|
||||||
val intent = Intent(Intent.ACTION_VIEW, Uri.parse("wechatextmsg://${activity.packageName}/?extmsg=${baseReq.message.messageExt}"))
|
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.startActivity(intent)
|
||||||
activity.finish()
|
activity.finish()
|
||||||
WXAPiHandler.coolBoot = false
|
WXAPiHandler.coolBoot = false
|
||||||
|
Reference in New Issue
Block a user