optimised wechat-api