dever há 4 anos atrás
pai
commit
3f563a7066
1 ficheiros alterados com 6 adições e 6 exclusões
  1. 6 6
      lib/dever/index.js

+ 6 - 6
lib/dever/index.js

@@ -661,7 +661,7 @@ var share =
 		options.token = this.token;
 		http.request('post', url, options, function(data) {
 			self.wx.config({ 
-			    debug:true,
+			    //debug:true,
 			    appId: data.appId,
 			    timestamp: data.timestamp,
 			    nonceStr: data.nonceStr,
@@ -677,7 +677,7 @@ var share =
 			    self.wx.onMenuShareAppMessage({
 			        title: param.title,
 			        desc: param.content,
-			        link: param.link,
+			        link: param.source_link,
 			        imgUrl: param.pic,
 			        success: function(res) {
 			            self.shareLog(1, 1);
@@ -691,7 +691,7 @@ var share =
 			    });
 			    self.wx.onMenuShareTimeline({
 			        title: param.title,
-			        link: param.url,
+			        link: param.source_link,
 			        imgUrl: param.img,
 			        success: function(res) {
 			            self.shareLog(2, 1);
@@ -705,7 +705,7 @@ var share =
 			    });
 			    self.wx.onMenuShareQQ({
 			        title: param.title,
-			        link: param.url,
+			        link: param.source_link,
 			        imgUrl: param.img,
 			        success: function(res) {
 			            self.shareLog(3, 1);
@@ -731,7 +731,7 @@ var share =
             wechat = this.wechat;
 
         if (param.indexOf("tsina-") > -1 || param.indexOf("timeline") > -1 || param.indexOf("singlemessage") > -1 || param.indexOf("groupmessage") > -1) {
-            var url = this.url + 'reflux?callback=?' + '&project='+project+'&url=' + url + '&ua=' + ua + '&param=' + encodeURIComponent(param) + '&token=' + token + '&type=' + wechat;
+            var url = this.url + 'reflux&callback=?' + '&project='+project+'&url=' + url + '&ua=' + ua + '&param=' + encodeURIComponent(param) + '&token=' + token + '&type=' + wechat;
 			http.request('post', url, {noloading:1});
         }
     }
@@ -742,7 +742,7 @@ var share =
         var wechat = this.wechat;
         var ua = encodeURIComponent(navigator.userAgent);
         var url = encodeURIComponent(document.location.href);
-		var url = this.url + 'collect?callback=?' + '&project='+project+'&url=' + url + '&actType=' + actType + '&actResult=' + actResult + '&ua=' + ua + '&token=' + token + '&type=' + wechat
+		var url = this.url + 'collect&callback=?' + '&project='+project+'&url=' + url + '&actType=' + actType + '&actResult=' + actResult + '&ua=' + ua + '&token=' + token + '&type=' + wechat
 		http.request('post', url, {noloading:1});
     }
 }