Browse Source

测试代码

chenbo 4 years ago
parent
commit
8ccc0181b4
2 changed files with 1 additions and 1 deletions
  1. 1 0
      api/wxinfo.php
  2. 0 1
      front-page/fission-page.html

+ 1 - 0
api/wxinfo.php

@@ -8,6 +8,7 @@
 try {
     $code = safeCheck($_POST["code"], 0);
     $jsUrl = safeCheck($_POST["jsUrl"], 0);
+    $jsUrl = urldecode($jsUrl);
     $weixin_public = new weixin_public(APPID, APPSECRET, APPURI);
     $info = $weixin_public->getAllInfo($code, $jsUrl);
     echo action_msg($info, 200);

+ 0 - 1
front-page/fission-page.html

@@ -105,7 +105,6 @@
                 });
             },
             setWxConfig(param){
-                alert(encodeURIComponent(location.href.split('#')[0]));
                 wx.config({
                     debug: false,
                     appId: param.appId,