From 736fd5b5a22e172dc59ef485b23bf6dc7a262738 Mon Sep 17 00:00:00 2001 From: xuwenbo <717567226@qq.com> Date: Mon, 14 Sep 2020 13:39:49 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=AC=E4=BC=97=E5=8F=B7=E6=8E=88=E6=9D=83?= =?UTF-8?q?=E7=99=BB=E5=BD=95spread=E8=BD=AC=E6=8D=A2=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- libs/wechat.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libs/wechat.js b/libs/wechat.js index da1849a..01a0e49 100644 --- a/libs/wechat.js +++ b/libs/wechat.js @@ -124,6 +124,7 @@ export function clearAuthStatus() { export function oAuth() { console.log('处理微信授权') + console.log('处理微信授权cookie',cookie.get("spread")) console.log(store) console.log(store.state) return new Promise((resolve, reject) => { @@ -147,7 +148,7 @@ export function auth(code) { console.log('获取微信授权') return new Promise((resolve, reject) => { let loginType = cookie.get(LOGINTYPE); - wechatAuth(code, parseInt(cookie.get("spread")), loginType) + wechatAuth(code, cookie.get("spread"), loginType) .then(({ data }) => { console.log(data) const expires_time = dayjs(data.expires_time);