diff --git a/src/application/index/controller/BaseController.php b/src/application/index/controller/BaseController.php index 16a68dc9..d49ce184 100644 --- a/src/application/index/controller/BaseController.php +++ b/src/application/index/controller/BaseController.php @@ -491,7 +491,8 @@ protected function getShareData($url = '') 'checkJsApi', 'openAddress', 'openLocation', - 'getLocation' + 'getLocation', + 'chooseWXPay' ]); return $signPackage; } diff --git a/src/template/blog/public/base.tpl b/src/template/blog/public/base.tpl index 0eea1490..1e769ebb 100644 --- a/src/template/blog/public/base.tpl +++ b/src/template/blog/public/base.tpl @@ -58,6 +58,9 @@ jQuery(function ($) { $.ajax({ url: "{:url('index/jssdk')}", + data: { + url: location.href + }, success: function (json) { if (json.code == 1) { wx.config(json.data); diff --git a/src/template/default/public/base.tpl b/src/template/default/public/base.tpl index e6643b1b..a1b00063 100644 --- a/src/template/default/public/base.tpl +++ b/src/template/default/public/base.tpl @@ -199,6 +199,9 @@ jQuery(function ($) { $.ajax({ url: "{:url('index/jssdk')}", + data: { + url: location.href + }, success: function (json) { if (json.code == 1) { wx.config(json.data); diff --git a/src/template/mobile/public/base.tpl b/src/template/mobile/public/base.tpl index 77713db8..0551f295 100644 --- a/src/template/mobile/public/base.tpl +++ b/src/template/mobile/public/base.tpl @@ -44,6 +44,9 @@ jQuery(function ($) { $.ajax({ url: "{:url('index/jssdk')}", + data: { + url: location.href + }, success: function (json) { if (json.code == 1) { wx.config(json.data);