support both base and userinfo for weixin api