Authored by 郝肖肖

分享 连接改成 http

@@ -9,7 +9,7 @@ namespace WebPlugin\Pay\Allinpay; @@ -9,7 +9,7 @@ namespace WebPlugin\Pay\Allinpay;
9 */ 9 */
10 class Config 10 class Config
11 { 11 {
12 - var $pay_url = '//service.allinpay.com/gateway/index.do'; 12 + var $pay_url = 'https://service.allinpay.com/gateway/index.do';
13 13
14 /** 14 /**
15 * 编码 15 * 编码
@@ -29,29 +29,29 @@ function shareBase(options) { @@ -29,29 +29,29 @@ function shareBase(options) {
29 29
30 switch (defOption.channel) { 30 switch (defOption.channel) {
31 case 'weibo': 31 case 'weibo':
32 - openUrl = '//service.weibo.com/share/share.php?url=' + defOption.url + '&title=' + 32 + openUrl = 'http://service.weibo.com/share/share.php?url=' + defOption.url + '&title=' +
33 defOption.title + '&appkey=3739328910&searchPic=true&pic=' + defOption.image; 33 defOption.title + '&appkey=3739328910&searchPic=true&pic=' + defOption.image;
34 break; 34 break;
35 case 'tweibo': 35 case 'tweibo':
36 - openUrl = '//share.v.t.qq.com/index.php?c=share&a=index&url=' + defOption.url + '&title=' + 36 + openUrl = 'http://share.v.t.qq.com/index.php?c=share&a=index&url=' + defOption.url + '&title=' +
37 defOption.title + '&appkey=c0af9c29e0900813028c2ccb42021792&pic=' + defOption.image; 37 defOption.title + '&appkey=c0af9c29e0900813028c2ccb42021792&pic=' + defOption.image;
38 break; 38 break;
39 case 'qzone': 39 case 'qzone':
40 - openUrl = '//sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url=' + defOption.url + '&title=' + 40 + openUrl = 'http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url=' + defOption.url + '&title=' +
41 defOption.title + '&desc=&summary=' + defOption.desc + '&site=YOHO!有货&pics=' + defOption.image; 41 defOption.title + '&desc=&summary=' + defOption.desc + '&site=YOHO!有货&pics=' + defOption.image;
42 break; 42 break;
43 case 'renren': 43 case 'renren':
44 - openUrl = '//widget.renren.com/dialog/share?resourceUrl=' + defOption.url + '&srcUrl=' + 44 + openUrl = 'http://widget.renren.com/dialog/share?resourceUrl=' + defOption.url + '&srcUrl=' +
45 defOption.url + '&desc=' + defOption.desc + '&title=' + defOption.title + '&description=' + 45 defOption.url + '&desc=' + defOption.desc + '&title=' + defOption.title + '&description=' +
46 defOption.desc + '&pic=' + defOption.image; 46 defOption.desc + '&pic=' + defOption.image;
47 break; 47 break;
48 case 'qq': 48 case 'qq':
49 - openUrl = '//connect.qq.com/widget/shareqq/index.html?url=' + defOption.url + '&desc=' + 49 + openUrl = 'http://connect.qq.com/widget/shareqq/index.html?url=' + defOption.url + '&desc=' +
50 defOption.desc + '&title=' + defOption.title.replace('%', '') + '&desc=&summary=' + 50 defOption.desc + '&title=' + defOption.title.replace('%', '') + '&desc=&summary=' +
51 defOption.desc + '&site=YOHO!有货&pics=' + defOption.image; 51 defOption.desc + '&site=YOHO!有货&pics=' + defOption.image;
52 break; 52 break;
53 case 'weixin': 53 case 'weixin':
54 - openUrl = '//s.jiathis.com/qrcode.php?url=' + defOption.weixinUrl + '&desc=' + 54 + openUrl = 'http://s.jiathis.com/qrcode.php?url=' + defOption.weixinUrl + '&desc=' +
55 defOption.desc + '&title=' + defOption.title + '&description=' + 55 defOption.desc + '&title=' + defOption.title + '&description=' +
56 defOption.desc + '&pic=' + defOption.image; 56 defOption.desc + '&pic=' + defOption.image;
57 break; 57 break;
@@ -81,9 +81,9 @@ class InfoModel @@ -81,9 +81,9 @@ class InfoModel
81 $result['header']['time'] = date('Y年m月d日 H:i', $article['publish_time']); 81 $result['header']['time'] = date('Y年m月d日 H:i', $article['publish_time']);
82 $result['header']['click'] = $article['pageViews']; 82 $result['header']['click'] = $article['pageViews'];
83 $result['header']['commentNum'] = $data['comments']['total']; 83 $result['header']['commentNum'] = $data['comments']['total'];
84 - $result['header']['shareImg'] = Images::getImageUrl($article['cover_image'], 600, 600); 84 + $result['header']['shareImg'] = 'https:' . Images::getImageUrl($article['cover_image'], 600, 600);
85 $result['header']['desc'] = $article['article_summary']; 85 $result['header']['desc'] = $article['article_summary'];
86 - $result['header']['weixinUrl'] = Helpers::getUrlSafe($article['url']); 86 + $result['header']['weixinUrl'] = 'https:' . Helpers::getUrlSafe($article['url']);
87 //文章详细 87 //文章详细
88 if (isset($data['contents']) && !empty($data['contents'])) { 88 if (isset($data['contents']) && !empty($data['contents'])) {
89 foreach ($data['contents'] as $key => $val) { 89 foreach ($data['contents'] as $key => $val) {