# mallchat **Repository Path**: tangkunStudy/mallchat ## Basic Information - **Project Name**: mallchat - **Description**: 自学mallchat项目,为了秋招 - **Primary Language**: Java - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2025-05-11 - **Last Updated**: 2025-08-08 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # mallchat #### 登录整体思路 客户端一连接,把链接和用户信息绑定在一个map,发送一个请求 { "type":1 } 随后进入handleLoginReq方法,并传入对应信道,然后随机生成code,并以code生成二维码,并把code和channel绑定在一起,并返回给前端 用户扫码二维码后,会携带openid和code触发ScanHandler,根据openid看数据库是否有用户信息,没有则没注册,然后把openid填充到user对象,并插入数据库,然后把openid和code绑定在一起 并推送给前端正在登录,以及点击登录链接,当用户点击登录链接,会携带code触发/callBack, 在该方法中可以根据code得到Access_token以及用户信息,然后把数据库的空余信息填充好,然后根据openid移除和code的绑定关系,并进行登录,在登录过程中根据code找到信道,根据id找到数据库对应的用户信息,然后把code对象的channel删除,并根据id生成token,并发生给前端,从而完成登录 #### 软件架构 软件架构说明 #### 安装教程 1. xxxx 2. xxxx 3. xxxx #### 使用说明 1. xxxx 2. xxxx 3. xxxx #### 参与贡献 1. Fork 本仓库 2. 新建 Feat_xxx 分支 3. 提交代码 4. 新建 Pull Request #### 特技 1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md 2. Gitee 官方博客 [blog.gitee.com](https://blog.gitee.com) 3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解 Gitee 上的优秀开源项目 4. [GVP](https://gitee.com/gvp) 全称是 Gitee 最有价值开源项目,是综合评定出的优秀开源项目 5. Gitee 官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help) 6. Gitee 封面人物是一档用来展示 Gitee 会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)