登录退出完善
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user