Commit e2a3934c authored by liuxinjun's avatar liuxinjun

去掉本地缓存时间限制

parent ade6256b
...@@ -877,29 +877,29 @@ var sdk = { ...@@ -877,29 +877,29 @@ var sdk = {
var specialFlag =0; var specialFlag =0;
wx.showShareMenu({withShareTicket:true}) wx.showShareMenu({withShareTicket:true})
wx.updateShareMenu({ // wx.updateShareMenu({
withShareTicket: true, // withShareTicket: true,
isUpdatableMessage: true, // isUpdatableMessage: true,
activityId: this.getConfig4().activityId , // 活动 ID // activityId: this.getConfig4().activityId , // 活动 ID
templateInfo: { // templateInfo: {
parameterList: [{ // parameterList: [{
name: 'member_count', // name: 'member_count',
value: String(this.getConfig4().activityMemberCount) // value: String(this.getConfig4().activityMemberCount)
}, { // }, {
name: 'room_limit', // name: 'room_limit',
value: String(this.getConfig4().activityRoomLimit) // value: String(this.getConfig4().activityRoomLimit)
}] // }]
}, // },
success: function(){ // success: function(){
console.error("动态消息成功回调"); // console.error("动态消息成功回调");
}, // },
fail: function(){ // fail: function(){
console.error("动态消息失败回调"); // console.error("动态消息失败回调");
}, // },
complete: function(){ // complete: function(){
console.error("动态消息完成"); // console.error("动态消息完成");
}, // },
}) // })
wx.onShareAppMessage(function(res){ wx.onShareAppMessage(function(res){
...@@ -1004,29 +1004,29 @@ var sdk = { ...@@ -1004,29 +1004,29 @@ var sdk = {
console.log("sdk 微信分享", shareInfo); console.log("sdk 微信分享", shareInfo);
if (cc.sys.platform === cc.sys.WECHAT_GAME) { if (cc.sys.platform === cc.sys.WECHAT_GAME) {
wx.updateShareMenu({ // wx.updateShareMenu({
withShareTicket: true, // withShareTicket: true,
isUpdatableMessage: true, // isUpdatableMessage: true,
activityId: this.getConfig4().activityId , // 活动 ID // activityId: this.getConfig4().activityId , // 活动 ID
templateInfo: { // templateInfo: {
parameterList: [{ // parameterList: [{
name: 'member_count', // name: 'member_count',
value: String(this.getConfig4().activityMemberCount) // value: String(this.getConfig4().activityMemberCount)
}, { // }, {
name: 'room_limit', // name: 'room_limit',
value: String(this.getConfig4().activityRoomLimit) // value: String(this.getConfig4().activityRoomLimit)
}] // }]
}, // },
success: function(){ // success: function(){
console.error("动态消息成功回调"); // console.error("动态消息成功回调");
}, // },
fail: function(){ // fail: function(){
console.error("动态消息失败回调"); // console.error("动态消息失败回调");
}, // },
complete: function(){ // complete: function(){
console.error("动态消息完成"); // console.error("动态消息完成");
}, // },
}) // })
wx.shareAppMessage(shareInfo); wx.shareAppMessage(shareInfo);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment