From 0b044c7bbcf6a1558d9a84b534f8b15a6e982152 Mon Sep 17 00:00:00 2001 From: shirne Date: Thu, 24 Oct 2024 11:26:46 +0800 Subject: [PATCH] fix --- src/application/index/controller/BaseController.php | 3 ++- src/template/blog/public/base.tpl | 3 +++ src/template/default/public/base.tpl | 3 +++ src/template/mobile/public/base.tpl | 3 +++ 4 files changed, 11 insertions(+), 1 deletion(-) 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);