From 4006c480a96a71686b63df93645a10558e45f678 Mon Sep 17 00:00:00 2001 From: kola-web Date: Tue, 12 May 2026 14:53:34 +0800 Subject: [PATCH] print code --- src/app.ts | 39 ++++++++++++++++++++------------------- 1 file changed, 20 insertions(+), 19 deletions(-) diff --git a/src/app.ts b/src/app.ts index c616f81..1e50d4d 100644 --- a/src/app.ts +++ b/src/app.ts @@ -134,25 +134,26 @@ App({ const that = this wx.login({ success(res) { - wx.ajax({ - method: 'GET', - url: '?r=igg4/user/init-login', - data: { - code: res.code, - }, - }).then((res) => { - that.globalData.loginState = res.loginState - that.globalData.isReg = res.isReg - that.globalData.isLogin = res.isLogin - that.globalData.loginType = res.loginType - if (!Object.keys(that.globalData.scene)?.length) { - that.globalData.anyWhere = res.anyWhere - } - if (wx.getLaunchOptionsSync()?.query?.activity === 'NRDL') { - that.clickPush() - } - that.getUserInfo() - }) + console.log('=======================',code=======================',res.code) + // wx.ajax({ + // method: 'GET', + // url: '?r=igg4/user/init-login', + // data: { + // code: res.code, + // }, + // }).then((res) => { + // that.globalData.loginState = res.loginState + // that.globalData.isReg = res.isReg + // that.globalData.isLogin = res.isLogin + // that.globalData.loginType = res.loginType + // if (!Object.keys(that.globalData.scene)?.length) { + // that.globalData.anyWhere = res.anyWhere + // } + // if (wx.getLaunchOptionsSync()?.query?.activity === 'NRDL') { + // that.clickPush() + // } + // that.getUserInfo() + // }) }, }) },