|
@@ -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 = {
|