优化
This commit is contained in:
parent
e97c46a09f
commit
2af5bff831
@ -153,9 +153,12 @@ type LogInfo struct {
|
|||||||
|
|
||||||
func (f *FriendMod) InitData() {
|
func (f *FriendMod) InitData() {
|
||||||
if f.FriendList == nil {
|
if f.FriendList == nil {
|
||||||
f.AddActLog(ACT_LOG_TYPE_FIRST_LOGIN, "")
|
|
||||||
f.FriendList = make(map[int]struct{})
|
f.FriendList = make(map[int]struct{})
|
||||||
}
|
}
|
||||||
|
if len(f.ActivityLog) == 0 {
|
||||||
|
f.ActivityLog = make([]*ActLogInfo, 0)
|
||||||
|
f.AddActLog(ACT_LOG_TYPE_FIRST_LOGIN, "")
|
||||||
|
}
|
||||||
if f.ApplyList == nil {
|
if f.ApplyList == nil {
|
||||||
f.ApplyList = make(map[int]int64)
|
f.ApplyList = make(map[int]int64)
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user