Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Nov 28, 2025

实现微信小程序多端登录验证接口 code2VerifyInfo,用于手表端等多端登录场景。

官方文档:https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/miniapp/openapi/code2Verifyinfo.html

变更内容

  • WxMaApiUrlConstants - 新增 CODE_2_VERIFY_INFO_URL 常量
  • WxMaCode2VerifyInfoResult - 新增返回结果类,包含 session_keyopenidunionidis_limit 字段
  • WxMaUserService - 新增 getCode2VerifyInfo(String code, String checkcode) 接口方法
  • WxMaUserServiceImpl - 实现接口调用逻辑

使用示例

WxMaCode2VerifyInfoResult result = wxMaService.getUserService()
    .getCode2VerifyInfo(code, checkcode);

String sessionKey = result.getSessionKey();
String openid = result.getOpenid();
Boolean isLimit = result.getIsLimit();
Original prompt

This section details on the original issue you should resolve

<issue_title>微信的多端登录有支持吗</issue_title>
<issue_description># 提问前,请确保阅读过项目首页说明以及wiki开发文档相关内容,完成内容后,请务必移除包括本句在内的无用内容,以免影响他人阅读,否则直接关闭,谢谢合作~

简要描述

登录接口官方出了一个多端的api,请问有计划支持吗

官方文档地址

请提供所需功能对应的微信官方文档地址以便进行确认。
https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/miniapp/openapi/code2Verifyinfo.html</issue_description>

Comments on the Issue (you are @copilot in this section)

@binarywang 如果有空的话,欢迎帮忙实现,看起来也挺简单,否则就只能等等了。 @binarywang 另外请规范发帖内容

Custom agent used: 全部用中文
需要用中文,包括PR标题和分析总结过程


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI changed the title [WIP] Add support for multi-device login API feat: 添加微信小程序多端登录 code2VerifyInfo 接口支持 Nov 28, 2025
Copilot AI requested a review from binarywang November 28, 2025 14:08
Copilot finished work on behalf of binarywang November 28, 2025 14:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

微信的多端登录有支持吗

2 participants