数据清里
This commit is contained in:
parent
05c56d6e00
commit
c638c3ec4a
@ -5,6 +5,7 @@ import (
|
||||
"fmt"
|
||||
"go_dreamfactory/comm"
|
||||
"go_dreamfactory/lego/core"
|
||||
"go_dreamfactory/lego/sys/event"
|
||||
"go_dreamfactory/modules"
|
||||
"go_dreamfactory/pb"
|
||||
"go_dreamfactory/sys/configure"
|
||||
@ -50,7 +51,7 @@ func (this *Dragon) OnInstallComp() {
|
||||
}
|
||||
func (this *Dragon) Start() (err error) {
|
||||
err = this.ModuleBase.Start()
|
||||
|
||||
event.RegisterGO(comm.EventUserOffline, this.EventUserOffline)
|
||||
return
|
||||
}
|
||||
|
||||
@ -197,3 +198,6 @@ func (this *Dragon) GMModifyDragonLv(uid string, cid string, lv int32) (dragon *
|
||||
err = fmt.Errorf("not found config:%s", cid)
|
||||
return
|
||||
}
|
||||
func (this *Dragon) EventUserOffline(uid, sessionid string) {
|
||||
this.modelDragon.BatchDelLists(uid)
|
||||
}
|
||||
|
@ -112,7 +112,7 @@ type DBUser struct {
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id" bson:"id"` //ID
|
||||
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id" bson:"_id"` //ID
|
||||
Uid string `protobuf:"bytes,2,opt,name=uid,proto3" json:"uid" bson:"uid"` //用户ID
|
||||
Uuid string `protobuf:"bytes,3,opt,name=uuid,proto3" json:"uuid" bson:"uuid"` //玩家唯一uuid
|
||||
Binduid string `protobuf:"bytes,4,opt,name=binduid,proto3" json:"binduid" bson:"binduid"` //玩家账号
|
||||
|
Loading…
Reference in New Issue
Block a user