Browse Source

修改bug

chenbo 4 years ago
parent
commit
828163612e
1 changed files with 2 additions and 1 deletions
  1. 2 1
      lib/common/weixin_public.class.php

+ 2 - 1
lib/common/weixin_public.class.php

@@ -79,7 +79,8 @@ class weixin_public
     private function getSignPackage($jsToken) {
         // 注意 URL 一定要动态获取,不能 hardcode.
         $protocol = (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off' || $_SERVER['SERVER_PORT'] == 443) ? "https://" : "http://";
-        $url = "$protocol$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";
+        //$url = "$protocol$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";
+        $url = "$protocol$_SERVER[HTTP_HOST]/front-page/fission-page.html";
 
         $nonceStr = self::createNonceStr();
         $timestamp = time();