Warning: fread(): Length parameter must be greater than 0 in /www/wwwroot/shijiachangdi.com/wxshareapi/config/config.php on line 19
Warning: fopen(access_token2017.txt): failed to open stream: Permission denied in /www/wwwroot/shijiachangdi.com/wxshareapi/config/config.php on line 41
Warning: fwrite() expects parameter 1 to be resource, boolean given in /www/wwwroot/shijiachangdi.com/wxshareapi/config/config.php on line 43
Warning: file_put_contents(): open_basedir restriction in effect. File(/www/wwwroot/git/official_website/shijiachangdi.com/bak/log/2025-05-01.log) is not within the allowed path(s): (/www/wwwroot/shijiachangdi.com/:/tmp/) in /www/wwwroot/shijiachangdi.com/wxshareapi/fx.php on line 13
Warning: file_put_contents(/www/wwwroot/git/official_website/shijiachangdi.com/bak/log/2025-05-01.log): failed to open stream: Operation not permitted in /www/wwwroot/shijiachangdi.com/wxshareapi/fx.php on line 13
wx.config({
debug: false,
appId: 'wxcbdd49eb007f95f5',
timestamp: 1746067325,
nonceStr: '12d34aabb123f4',
signature: '',
jsApiList: [
"onMenuShareTimeline",
"onMenuShareAppMessage",
"onMenuShareQQ",
"onMenuShareWeibo",
"onMenuShareQZone"
]
});
var shareData = { title: '', desc: '', img: '', link: '' };
shareData.title = '上海华东 试驾场地_试驾场地俱乐部';
shareData.desc = '';
shareData.img = 'http://www.shijiachangdi.com/upload/2023/12-19/5a875b2ff23c18a15feba7406e463bb7.jpg';
shareData.link = 'https://m.shijiachangdi.com/changdi/660.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) {
});