参考拷贝
This commit is contained in:
parent
cfc5d4f396
commit
c94006ca72
@ -88,10 +88,11 @@ func (this *ModelRtaskRecord) addUpdate(uid string, cfg *cfg.GameRdtaskCondiData
|
|||||||
}
|
}
|
||||||
//查找任务数据
|
//查找任务数据
|
||||||
if v, ok := record.Vals[cfg.Id]; ok {
|
if v, ok := record.Vals[cfg.Id]; ok {
|
||||||
newCount := make([]int32, len(vals))
|
newArr := make([]int32, len(vals))
|
||||||
|
newArr = vals
|
||||||
srcCount := v.Data[0]
|
srcCount := v.Data[0]
|
||||||
newCount[0] = srcCount + vals[0]
|
newArr[0] = srcCount + vals[0]
|
||||||
v.Data = toMap(newCount...)
|
v.Data = toMap(newArr...)
|
||||||
v.Timestamp = configure.Now().Unix()
|
v.Timestamp = configure.Now().Unix()
|
||||||
|
|
||||||
update := map[string]interface{}{
|
update := map[string]interface{}{
|
||||||
|
Loading…
Reference in New Issue
Block a user