Add debug flag and reduce SQL queries for performance's sake
Merge branch 'develop' of https://github.com/renfeisong/buaasoft-wechat into develop