Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

这个问题处理了吗? #4

Closed
guominfang opened this issue Dec 22, 2021 · 6 comments
Closed

这个问题处理了吗? #4

guominfang opened this issue Dec 22, 2021 · 6 comments

Comments

@guominfang
Copy link

这个问题处理了吗?

需求,同时检查APP更新和数据库更新,根据接口返回,是否弹出dialog提示,如下图接入方式,代码不工作

image

Originally posted by @guominfang in #3 (comment)

@iostyle
Copy link
Owner

iostyle commented Dec 25, 2021

有尝试过断点调试嘛,卡在哪一步,是框架的问题的话可以给我回复描述一下,我会修复

@guominfang
Copy link
Author

guominfang commented Dec 25, 2021

如上图所示,定义了两个弹窗,A:APP更新 B:数据库更新,

弹窗的顺序都是按照接口的异步回调,

但是定义的时候,是规定,A在B之前,目前是 B先回调了, 所以B不显示。但是等到A回调,A也不显示了

@iostyle
Copy link
Owner

iostyle commented Dec 25, 2021

如上图所示,定义了两个弹窗,A:APP更新 B:数据库更新,

弹窗的顺序都是按照接口的异步回调,

但是定义的时候,是规定,A在B之前,目前是 B先回调了, 所以B不显示。但是等到A回调,A也不显示了

你的代码里当B不显示的时候将trigger释放了呀,所以A才不显示了呀

@iostyle
Copy link
Owner

iostyle commented Dec 25, 2021

removeTriggerInstance(name: String, clear: Boolean) clear传入false即可

@iostyle
Copy link
Owner

iostyle commented Dec 25, 2021

你的代码流程也存在些许的问题,可以再好好思考一下

@iostyle
Copy link
Owner

iostyle commented Dec 25, 2021

框架如果有问题的话欢迎再提交issue

@iostyle iostyle closed this as completed Dec 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants