This is the code I wrote for the wechat platform CHIDU(尺度),leaving it here only for backing up the codes.
It handles all the incoming messages and replying accordingly using autosetup rules with a php written restful service. It also provides a nice platform for internal use. It also handles the unique service of ours, namely Ball(球形), which is a personal consulting service.
For now, please do not copy or use the code, I also haven't put any license to it. If you do need to use the code, please consult with me first.
Thanks.