Skip to content

Conversation

lalalashenle
Copy link

BUG说明:
resp中包含"error"键,值为True或False,如果执行if resp["error"] is None:进行判断的话,当error未False,即理应成功返回扫描结果时,判断会为"False",跳过执行这段if,直接终止了结果的返回。
修复方法:
改为if not resp["error"]:,进行error键的真假值判断,若error键的值为False,则if判断为真,执行扫描结果的返回操作。

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