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

不能查询到 uid,导致 foreach 遍历了 false值,报错,worker退出 #79

Open
huanshiwushuang opened this issue Sep 11, 2021 · 0 comments

Comments

@huanshiwushuang
Copy link

image

在不停的接收到message时,频繁的通过 Gateway::getUidByClientId($client_id); 查询UID,然而在 lib/Gateway.php 中的 getUidByClientId 方法中,$data 变量返回的值,有可能是这样的:

array(1) {
  [2130706433]=>
  array(1) {
    [2000]=>
    bool(false)
  }
}

第三个 foreach 遍历 false 就出错了。
详细的打印记录,可见error.txt,false 在 日志中的 18267 行可见

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