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

小程序连接成功了,可是匹配不到 #20

Open
zhanglei417 opened this issue Oct 26, 2018 · 4 comments
Open

小程序连接成功了,可是匹配不到 #20

zhanglei417 opened this issue Oct 26, 2018 · 4 comments

Comments

@zhanglei417
Copy link

从打的日志来看,连接应该是有了,但是匹配出url那步报错

image

@zhanglei417
Copy link
Author

返回的只有两个url时候匹配的问题

@zhanglei417
Copy link
Author

self._cleanJsonData(responseJson)
这个clear后 responsejson就空了。

另外下面这个函数中 判断的message和eventData一直不一致,用的小程序是 一点点
image

@LucianLiu6
Copy link
Contributor

那个 if eventData == message 的判断条件太严苛了,改成 if eventData in message 判断就可以了

@huhust
Copy link

huhust commented Nov 1, 2018

那个 if eventData == message 的判断条件太严苛了,改成 if eventData in message 判断就可以了

正解

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

3 participants