完成剩下的公众号登录功能修改

This commit is contained in:
timfruit
2021-12-08 00:17:01 +08:00
parent 13a9405082
commit 450ca8f907
6 changed files with 112 additions and 34 deletions

View File

@@ -13,14 +13,16 @@
</div>
</body>
<script>
let server = 'http://127.0.0.1:28080';
// let server = 'http://127.0.0.1:28080';
let server = 'http://192.168.1.2:28080';
// 微信公众号
$( "#wx_pub").on( "click", function() {
// 获得授权链接
$.ajax({
url: server + "/api/social-auth-redirect?type=31&redirectUri=" +
encodeURIComponent(server + '/api/social-login-get'),
encodeURIComponent(server + '/static/social-login2.html'), //重定向地址
method: 'GET',
success: function( result ) {
if (result.code !== 0) {