Warning: fopen(access_token2017.txt): failed to open stream: Permission denied in /www/wwwroot/www.kingmas.cc/wxshareapi/config/config.php on line 41

Warning: fwrite() expects parameter 1 to be resource, bool given in /www/wwwroot/www.kingmas.cc/wxshareapi/config/config.php on line 43
wx.config({ debug: false, appId: 'wx895c75d0a1b82d10', timestamp: '1745258597', nonceStr: '12d34aabb123f4', signature: '269f63af43b731eb9c3747f92d8af2d3a970b708', jsApiList: [ 'onMenuShareTimeline', 'onMenuShareAppMessage' ] }); var shareData = { title: '', desc: '', img: '', link: '' }; shareData.title = '欧盟拟对中国出口的电动汽车征收反补贴税,汽车行业强烈反对-北京劲马奥通顾问有限公司'; shareData.desc = ''; shareData.img = 'https://www.kingmas.com.cn/logo2025.png'; shareData.link = 'https://kingmas.com.cn/hyxw/47.html'; wx.ready(function () { //分享到朋友圈 wx.onMenuShareTimeline({ title: shareData.title, // 分享标题fxtitle link: shareData.link, // 分享链接 imgUrl: shareData.img, // 分享图标 type: '', // 分享类型,music、video或link,不填默认为link dataUrl: '', // 如果type是music或video,则要提供数据链接,默认为空 success: function () { }, cancel: function () { } }); //分享给单个朋友 wx.onMenuShareAppMessage({ title: shareData.title, // 分享标题 desc: shareData.desc, // 分享描述 link: shareData.link, // 分享链接 imgUrl: shareData.img, // 分享图标 type: '', // 分享类型,music、video或link,不填默认为link dataUrl: '', // 如果type是music或video,则要提供数据链接,默认为空 success: function () { }, cancel: function () { // 用户取消分享后执行的回调函数 } }); //分享给QQ好友 wx.onMenuShareQQ({ title: shareData.title, // 分享标题 desc: shareData.desc, // 分享描述 link: shareData.link, // 分享链接 imgUrl: shareData.img, // 分享图标 success: function () { // 用户确认分享后执行的回调函数 }, cancel: function () { // 用户取消分享后执行的回调函数 } }); }); wx.error(function (res) { });