展开
拓展 关闭
订阅号推广码
GitHub
视频
公告栏 关闭

微信登录

案例一

点击查看详情
  • 订阅号没有权限,公众号需企业认证

  • 使用公共平台链接

  • 使用微信登录后自动生成

  • 使用ngrok

ngrok http 8080
  • 复制到


  • 修改配置文件

constants.weCatAppId=wx89e22584cf63a22c
constants.weCatAppSecret=31c9bd34d4a5145ab825846881623cbd1b
constants.weCatRedirectUrl=http://5d80-125-108-251-127.ngrok.io

  • 启动项目,通过ngrok转发到http://localhost:8080,跳转到微信登录页

  • 点击微信登录,生成二维码

  • 在微信公众平台先扫描此二维码,关注公众号

  • 之后才能扫描项目生成的二维码登录

案例二

posted @ 2021-12-19 10:43  DogLeftover  阅读(22)  评论(0编辑  收藏  举报