开服签到 从1 开始
This commit is contained in:
parent
3baea4ad44
commit
2a67942996
@ -353,7 +353,8 @@ func (this *Activity) GetHdData(session comm.IUserSession, oids []string) (resul
|
||||
}
|
||||
}
|
||||
list, _ = this.modelhdData.getHddataByOid(session.GetUserId(), id)
|
||||
if activity.Itype == pb.HdType_HdTypeSign && !utils.IsToday(list.Lasttime) {
|
||||
if activity.Itype == pb.HdType_HdTypeSign {
|
||||
if list.Val == 0 || !utils.IsToday(list.Lasttime) {
|
||||
list.Lasttime = curTime
|
||||
list.Val += 1
|
||||
update := make(map[string]interface{})
|
||||
@ -361,6 +362,7 @@ func (this *Activity) GetHdData(session comm.IUserSession, oids []string) (resul
|
||||
update["val"] = list.Val
|
||||
this.modelhdData.ModifyActivityList(session.GetUserId(), list.Id, update)
|
||||
}
|
||||
}
|
||||
|
||||
// 开服等级活动
|
||||
if activity.Itype == pb.HdType_HdLevel {
|
||||
|
Loading…
Reference in New Issue
Block a user