参考 

https://www.cnblogs.com/replaceroot/p/11421713.html

https://developers.weixin.qq.com/community/develop/doc/a39569a8bd172ab387dc2f8c4a80ee8f

https://blog.csdn.net/xubaifu1997/article/details/90605683