转载自:https://blog.csdn.net/qq_41816785/article/details/80212214
亲测可用,上面代码调用时需改为WxToken WxToken = getInstance();