登录退出完善

This commit is contained in:
1
2025-08-28 21:57:30 +00:00
parent 79361e68cd
commit 406d9129b0
4 changed files with 18 additions and 2 deletions

View File

@@ -6,6 +6,7 @@ import (
"context"
"encoding/json"
"strings"
"time"
"github.com/gogf/gf/v2/os/glog"
)
@@ -37,7 +38,7 @@ func (s *UserService) Reg(nick string, color uint32) {
t1.Nick = nick
t1.Color = color
t1.RegisterTime = uint32(time.Now().Unix())//写入注册时间
t22, err := json.Marshal(t1)
if err != nil {
return