GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — 企业微信第三方应用获取登录用户信息接口的方法里的令牌获取错误 · Issue #1969 · binarywang/WxJava

企业微信第三方应用获取登录用户信息接口的方法里的令牌获取错误 #1969

New issue
Copy link
New issue
Copy link
Closed
Closed
企业微信第三方应用获取登录用户信息接口的方法里的令牌获取错误#1969
Copy link
Labels
企业微信

Description

@tanyun1111
tanyun1111
opened on Jan 14, 2021
Issue body actions

public WxTpLoginInfo getLoginInfo(String authCode) throws WxErrorException {
JsonObject jsonObject = new JsonObject();
jsonObject.addProperty("auth_code", authCode);
jsonObject.addProperty("access_token", configStorage.getAccessToken(authCode));
String responseText = post(configStorage.getApiUrl(GET_LOGIN_INFO), jsonObject.toString());
return WxTpLoginInfo.fromJson(responseText);
}

jsonObject.addProperty("access_token", configStorage.getAccessToken(authCode));
这行的获取令牌应该是
jsonObject.addProperty("access_token", configStorage.getProviderAccessToken());

Activity

  1. binarywang commented on Jan 27, 2021

    @binarywang
    binarywang
    on Jan 27, 2021
    Owner
    More actions

    欢迎直接提交PR

  2. binarywang
    changed the title [-]WxTpLoginInfo getLoginInfo(String authCode)方法里的令牌获取错误[/-] [+]企业微信第三方应用获取登录用户信息接口的方法里的令牌获取错误[/+] on Jan 27, 2021
  3. binarywang
    added
    企业微信
    on Jan 27, 2021
  4. binarywang
    closed this as completedon Jan 27, 2021
  5. binarywang
    added a commit that references this issue on Jan 27, 2021

    🐛 #1969 【企业微信】修复第三方应用获取登录用户信息接口方法里的错误代码

    c4a8796
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    企业微信

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.