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

请求提供者怎么保存/找到请求发起者 #21

Open
ghost opened this issue Sep 29, 2017 · 1 comment
Open

请求提供者怎么保存/找到请求发起者 #21

ghost opened this issue Sep 29, 2017 · 1 comment

Comments

@ghost
Copy link

ghost commented Sep 29, 2017

目前似乎 请求提供者 对于 请求发起者是可知的,反之不然,如果有这种case,提供者需要记住这次请求以便需要时联系到发起者,该怎么办,有解决方案吗?

@SpinyTech
Copy link
Owner

目前框架上没有发起者这个选项,因为调用action的可能是任何类。你可以把发起者的信息写到data里,data是json,可以任意扩展。这样action就能找到发起者了。

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

1 participant