Notice: Undefined property: stdClass::$access_token in /usr/home/wh-aaa6t9sj7hcp9t2iy2u/htdocs/wxshareapi/JSSDK.php on line 85 Notice: Undefined property: stdClass::$ticket in /usr/home/wh-aaa6t9sj7hcp9t2iy2u/htdocs/wxshareapi/JSSDK.php on line 61 wx.config({ //debug: true, appId: 'wxcf1910d604030881', timestamp: 1744982398, nonceStr: 'EUQBUeygiXptVctf', signature: 'ce1c391af302f070ff46cd22968d0beb0fe537f1', jsApiList: [ "onMenuShareTimeline", "onMenuShareAppMessage", ] }); wx.ready(function () { var wxCallbacks = { // 分享操作开始之前 title: '%E7%81%B5%E8%8A%9D%E5%93%A5%E8%94%A1%E5%86%9B%E5%B3%B0 %E8%A5%BF%E5%B1%B1%E5%88%9B%E4%B8%9A%E4%B9%8B%E6%98%9F', // 分享标题fxtitle link: 'https%3A%2F%2Fwww.xsdnjl.com%2Fxishan%2F258.html', //location.href, // 分享链接 desc: '', // 分享描述 imgUrl: 'https%3A%2F%2Fwww.xsdnjl.com%2Fuploads%2Fallimg%2F160429%2F1-160429100Z9643-lp.jpg', // 分享图标 type: '', // 分享类型,music、video或link,不填默认为link dataUrl: '', // 如果type是music或video,则要提供数据链接,默认为空 success: function () { }, cancel: function () { } }; //分享到朋友圈 wx.onMenuShareTimeline(wxCallbacks); //分享给单个朋友 wx.onMenuShareAppMessage(wxCallbacks); console.log('wx ready'); }); wx.error(function (res) { console.log('err', res) });