Codex Assistant
1 天以前 afeeed281e60466b576fbe74d339634cc5d07b82
wx/app.js
@@ -4,7 +4,7 @@
    userInfo: null,
    token: null,
    sessionKey: null, // 微信会话密钥,用于解密手机号等敏感数据
    baseUrl: 'http://localhost:8080/graphql', // 后台GraphQL接口地址
    baseUrl: 'http://localhost:8080/api/graphql', // 后台GraphQL接口地址
    hasPhoneAuth: false, // 是否已授权手机号
    rejectPhone: false, // 是否拒绝过手机号授权
    cos: {
@@ -163,7 +163,7 @@
        }
        
        // 检查是否有错误信息(适配不同的错误响应格式)
        if (res.data.error || res.data.message || res.data.success === false) {
        if (res.data.error || res.data.success === false) {
          const errorMsg = res.data.error || res.data.message || '登录失败'
          console.error('❌ 登录失败:', errorMsg)
          wx.showToast({