{"action":"opened","issue":{"url":"https://api.github.com/repos/DIYgod/Do-you-like-me/issues/1","labels_url":"https://api.github.com/repos/DIYgod/Do-you-like-me/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/DIYgod/Do-you-like-me/issues/1/comments","events_url":"https://api.github.com/repos/DIYgod/Do-you-like-me/issues/1/events","html_url":"https://github.com/DIYgod/Do-you-like-me/issues/1","id":128190509,"number":1,"title":"使用面向对象的 mysqli 操作","user":{"login":"printempw","id":11206497,"avatar_url":"https://avatars.githubusercontent.com/u/11206497?v=3","gravatar_id":"","url":"https://api.github.com/users/printempw","html_url":"https://github.com/printempw","followers_url":"https://api.github.com/users/printempw/followers","following_url":"https://api.github.com/users/printempw/following{/other_user}","gists_url":"https://api.github.com/users/printempw/gists{/gist_id}","starred_url":"https://api.github.com/users/printempw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/printempw/subscriptions","organizations_url":"https://api.github.com/users/printempw/orgs","repos_url":"https://api.github.com/users/printempw/repos","events_url":"https://api.github.com/users/printempw/events{/privacy}","received_events_url":"https://api.github.com/users/printempw/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-01-22T16:20:26Z","updated_at":"2016-01-22T16:20:26Z","closed_at":null,"body":"升级 PHP7 时发现以前用的这个 php 后端使用了过时的 `mysql_` 系列函数，于是用 mysqli 重写了一下。\r\n后来发现你已经改过了，但为什么还是用的面向过程的方法呢？\r\n另外应该不需要单独一个表来存储投票总数吧，SELECT COUNT(*) 的效率也不差。\r\nhttps://gist.github.com/printempw/48920748b328bacead1b\r\n望不吝赐教。"}}