update `weixin` set `expire_time`='1794672781', `access_token`='109_LwrtWtOoyZLCN7yIoW2Z_KaaoOlww5wsOm80KkKogBONItGehMon2rnfNLefPfLSMinAPzQVYL3aAz0QOXspgcLLRLnNxAhjuiFo_0IiUW-0cX8XKVpL25NP47AAZVaABAMLH' where `appid`='wx3f4e3b608aa393ac'update `weixin` set `jexpire_time`='1794672782', `jsapi_ticket`='HoagFKDcsGMVCIY2vOjf9jbaPhfZO8Z_1HNXXMD3lpoVlngHGpRO6GAXWuU30xub7Ry5yRr9DIzRS3jC-Lrm4g' where `appid`='wx3f4e3b608aa393ac' dataForWx = { "link": "http://evp.51job.com/BI/template/MT.shtml", //微信链接 "imgUrl": "http://evp.51job.com/BI/cover.jpg", //微信logo "title": "勃林格殷格翰(中国)投资有限公司人才招聘", //微信标题 "desc": "期待你的加入", }; wx.config({ debug: false, appId: 'wx3f4e3b608aa393ac', timestamp: 1794665782, nonceStr: 'ljbd1R7ukgps1Nw6', signature: '185b62a7a56c8223fb5286f9f7dda1eb9e93131d', jsApiList: [ 'onMenuShareAppMessage', 'onMenuShareTimeline' ] }); wx.ready(function() { wx.onMenuShareAppMessage({ title: dataForWx.title, desc: dataForWx.desc, link: dataForWx.link, imgUrl: dataForWx.imgUrl, fail: function (res) { alert(JSON.stringify(res)); } }); wx.onMenuShareTimeline({ title: dataForWx.title, link: dataForWx.link, imgUrl: dataForWx.imgUrl, fail: function (res) { alert(JSON.stringify(res)); } }); });