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

信道服务器返回格式不统一的问题解决 #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

xiaoyun94
Copy link

在返回无效信道的时候data字段返回的是JSON对象,而请求信道的时候却为JSON格式字符串。
在这里将body.getString("data")改为body.get("data").toString()可以暂时解决这个问题。
但是对于JSON对象的话,可能会因为对象转成了字符串再转换成对象,而造成的一些运算冗余。
如果不修改的话,onTunnelClose函数永远不会调用,就不会自动清理信道了。

在这里将body.getString("data")改为body.get("data").toString()可以暂时解决这个问题。
但是对于JSON对象的话,可能会因为对象转成了字符串再转换成对象,而造成的一些运算冗余。
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

Successfully merging this pull request may close these issues.

1 participant