{"action":"opened","issue":{"url":"https://api.github.com/repos/top-think/framework/issues/1524","repository_url":"https://api.github.com/repos/top-think/framework","labels_url":"https://api.github.com/repos/top-think/framework/issues/1524/labels{/name}","comments_url":"https://api.github.com/repos/top-think/framework/issues/1524/comments","events_url":"https://api.github.com/repos/top-think/framework/issues/1524/events","html_url":"https://github.com/top-think/framework/issues/1524","id":381857119,"node_id":"MDU6SXNzdWUzODE4NTcxMTk=","number":1524,"title":"由input数组指针问题导致的查询错误","user":{"login":"ytlmike","id":9930122,"node_id":"MDQ6VXNlcjk5MzAxMjI=","avatar_url":"https://avatars2.githubusercontent.com/u/9930122?v=4","gravatar_id":"","url":"https://api.github.com/users/ytlmike","html_url":"https://github.com/ytlmike","followers_url":"https://api.github.com/users/ytlmike/followers","following_url":"https://api.github.com/users/ytlmike/following{/other_user}","gists_url":"https://api.github.com/users/ytlmike/gists{/gist_id}","starred_url":"https://api.github.com/users/ytlmike/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ytlmike/subscriptions","organizations_url":"https://api.github.com/users/ytlmike/orgs","repos_url":"https://api.github.com/users/ytlmike/repos","events_url":"https://api.github.com/users/ytlmike/events{/privacy}","received_events_url":"https://api.github.com/users/ytlmike/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-11-17T12:05:45Z","updated_at":"2018-11-17T12:05:45Z","closed_at":null,"author_association":"NONE","body":"### 1. 现象\r\n在使用数组条件查询数据库时出现报错\r\n![1542455682 1](https://user-images.githubusercontent.com/9930122/48660798-a940d500-eaa2-11e8-8cfb-c70e6d998234.png)\r\n### 2.原因\r\n参数数组是从input()数据拿到的，在framework/library/think/Request.php#1356只对外层数组重置了指针，而此时内层数组的指针位置为null\r\n[framework/library/think/Request.php](https://github.com/top-think/framework/blob/5.1/library/think/Request.php)\r\n![1542456111 1](https://user-images.githubusercontent.com/9930122/48660850-a98da000-eaa3-11e8-8ff6-5ee4bd3b517a.png)\r\n\r\n现在我只能在自己的基类中重置指针，希望后续能更新下\r\n"}}
{"actor":{"display_login":"ytlmike"}}