Authored by 郝肖肖

分享 连接改成 http

... ... @@ -9,7 +9,7 @@ namespace WebPlugin\Pay\Allinpay;
*/
class Config
{
var $pay_url = '//service.allinpay.com/gateway/index.do';
var $pay_url = 'https://service.allinpay.com/gateway/index.do';
/**
* 编码
... ...
... ... @@ -29,29 +29,29 @@ function shareBase(options) {
switch (defOption.channel) {
case 'weibo':
openUrl = '//service.weibo.com/share/share.php?url=' + defOption.url + '&title=' +
openUrl = 'http://service.weibo.com/share/share.php?url=' + defOption.url + '&title=' +
defOption.title + '&appkey=3739328910&searchPic=true&pic=' + defOption.image;
break;
case 'tweibo':
openUrl = '//share.v.t.qq.com/index.php?c=share&a=index&url=' + defOption.url + '&title=' +
openUrl = 'http://share.v.t.qq.com/index.php?c=share&a=index&url=' + defOption.url + '&title=' +
defOption.title + '&appkey=c0af9c29e0900813028c2ccb42021792&pic=' + defOption.image;
break;
case 'qzone':
openUrl = '//sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url=' + defOption.url + '&title=' +
openUrl = 'http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url=' + defOption.url + '&title=' +
defOption.title + '&desc=&summary=' + defOption.desc + '&site=YOHO!有货&pics=' + defOption.image;
break;
case 'renren':
openUrl = '//widget.renren.com/dialog/share?resourceUrl=' + defOption.url + '&srcUrl=' +
openUrl = 'http://widget.renren.com/dialog/share?resourceUrl=' + defOption.url + '&srcUrl=' +
defOption.url + '&desc=' + defOption.desc + '&title=' + defOption.title + '&description=' +
defOption.desc + '&pic=' + defOption.image;
break;
case 'qq':
openUrl = '//connect.qq.com/widget/shareqq/index.html?url=' + defOption.url + '&desc=' +
openUrl = 'http://connect.qq.com/widget/shareqq/index.html?url=' + defOption.url + '&desc=' +
defOption.desc + '&title=' + defOption.title.replace('%', '') + '&desc=&summary=' +
defOption.desc + '&site=YOHO!有货&pics=' + defOption.image;
break;
case 'weixin':
openUrl = '//s.jiathis.com/qrcode.php?url=' + defOption.weixinUrl + '&desc=' +
openUrl = 'http://s.jiathis.com/qrcode.php?url=' + defOption.weixinUrl + '&desc=' +
defOption.desc + '&title=' + defOption.title + '&description=' +
defOption.desc + '&pic=' + defOption.image;
break;
... ...
... ... @@ -81,9 +81,9 @@ class InfoModel
$result['header']['time'] = date('Y年m月d日 H:i', $article['publish_time']);
$result['header']['click'] = $article['pageViews'];
$result['header']['commentNum'] = $data['comments']['total'];
$result['header']['shareImg'] = Images::getImageUrl($article['cover_image'], 600, 600);
$result['header']['shareImg'] = 'https:' . Images::getImageUrl($article['cover_image'], 600, 600);
$result['header']['desc'] = $article['article_summary'];
$result['header']['weixinUrl'] = Helpers::getUrlSafe($article['url']);
$result['header']['weixinUrl'] = 'https:' . Helpers::getUrlSafe($article['url']);
//文章详细
if (isset($data['contents']) && !empty($data['contents'])) {
foreach ($data['contents'] as $key => $val) {
... ...