mirror of
https://github.com/qiurunze123/miaosha.git
synced 2023-11-19 22:41:03 +08:00
提交二群
This commit is contained in:
parent
44c09a3bdd
commit
07e82e45dd
|
@ -6,11 +6,13 @@
|
|||
|
||||
> QQ : [3341386488](3341386488)
|
||||
|
||||
> QQ群 :
|
||||
> QQ群1 :
|
||||
|
||||
![整体流程](https://raw.githubusercontent.com/qiurunze123/imageall/master/qq.png)
|
||||
|
||||
> QQ群2 :
|
||||
|
||||
![整体流程](https://raw.githubusercontent.com/qiurunze123/imageall/master/miaosha22.png)
|
||||
|
||||
[![Travis](https://img.shields.io/badge/language-Java-yellow.svg)](https://github.com/qiurunze123)
|
||||
高并发大流量如何进行秒杀架构,我对这部分知识做了一个系统的整理,写了一套系统。本GitHub还有许多其他的知识,随时欢迎探讨与骚扰!本文还在更新如果文章出现瑕疵请及时与我联系!
|
||||
|
|
|
@ -104,19 +104,6 @@ public class MiaoShaUserService {
|
|||
if(user == null){
|
||||
return false;
|
||||
}
|
||||
|
||||
MiaoShaMessageVo vo = new MiaoShaMessageVo();
|
||||
vo.setContent("尊敬的用户你好,你已经成功注册!");
|
||||
vo.setCreateTime(new Date());
|
||||
vo.setMessageId(SnowflakeIdWorker.getOrderId(0,0));
|
||||
vo.setSendType(0);
|
||||
vo.setStatus(0);
|
||||
vo.setMessageType(MessageStatus.messageType.system_message.ordinal());
|
||||
vo.setUserId(miaoShaUser.getId());
|
||||
vo.setMessageHead(MessageStatus.ContentEnum.system_message_register_head.getMessage());
|
||||
sender.sendRegisterMessage(vo);
|
||||
|
||||
|
||||
//生成cookie 将session返回游览器 分布式session
|
||||
String token= UUIDUtil.uuid();
|
||||
addCookie(response, token, user);
|
||||
|
|
Loading…
Reference in New Issue
Block a user