simulate some weixin api to preview pages