Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
shirne committed Oct 24, 2024
1 parent fb1071e commit 0b044c7
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/application/index/controller/BaseController.php
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,8 @@ protected function getShareData($url = '')
'checkJsApi',
'openAddress',
'openLocation',
'getLocation'
'getLocation',
'chooseWXPay'
]);
return $signPackage;
}
Expand Down
3 changes: 3 additions & 0 deletions src/template/blog/public/base.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
3 changes: 3 additions & 0 deletions src/template/default/public/base.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
3 changes: 3 additions & 0 deletions src/template/mobile/public/base.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 0b044c7

Please sign in to comment.