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 — wetalk-java-sdk/README.md at master · VancySavoki/wetalk-java-sdk

Expand file tree

/

README.md

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
29 lines (27 loc) · 1001 Bytes
/

README.md

Copy path

File metadata and controls

29 lines (27 loc) · 1001 Bytes
Raw
Copy raw file
Download raw file
Outline
Edit and raw actions

Wetalk-JAVA-SDK

方便企业内部应用利用微信企业号和钉钉能力开发的sdk。可结合Spring Boot。

  • 使用统一OAuth2接口认证员工信息
  • 方便使用统一消息接口给员工发送消息和文件

示例

查看完整java后端示例
查看完整前端示例

概念

前后端都采用Provider的概念编写,用伪代码表示

class ProviderManager {
    Array providers;    
}
ProviderManager providerManager;
Condition ua;
PreAuthentication preAuthentication;
for(Provider provider: providerManager.providers) {
    final Support supporter = (Support) provider;
    if (supporter.support(ua)) {
        preAuthentication = supporter.getPreAuthenticationToken(code);
        break;
    }
    providerManager.authenticate(preAuthentication);
}

思想是即通过数组管理认证器,利用环境参数去遍历认证器是否可用,可用即中断并使用该认证器进行认证。

You are visitor 01402792 — 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.