Browse Source

商品收藏

zhengjinyi 3 years ago
parent
commit
b1d14a4c54
1 changed files with 3 additions and 2 deletions
  1. 3 2
      src/main/resources/templates/we_chat/redirect_uri.html

+ 3 - 2
src/main/resources/templates/we_chat/redirect_uri.html

@@ -6,7 +6,8 @@
     <template th:replace="components/head-link"></template>
 </head>
 <body>
-<input type="hidden" th:value="${spiServer}" id="spiServer"><input type="hidden" th:value="${coreServer}" id="coreServer">
+<input type="hidden" th:value="${spiServer}" id="spiServer">
+<input type="hidden" th:value="${coreServer}" id="coreServer">
 <input type="hidden" th:value="${agent}" id="userAgent">
 <template th:replace="components/foot-link"></template>
 <script charset="utf-8" type="text/javascript">
@@ -15,7 +16,7 @@
     var wx_code = getUrlParam('code');
     var wx_state = getUrlParam('state');
     var userData = '';
-    $.get(spiServer+'/user/login/auth/website?code='+wx_code+'&state='+wx_state+'&mode='+wx_mode, function(r){
+    $.get(coreServer+'/user/login/auth/website?code='+wx_code+'&state='+wx_state+'&mode='+wx_mode, function(r){
         if(r.code===0){
             console.log(r.data);
             userData = {