update
This commit is contained in:
parent
0c51fd3521
commit
f677a55ecc
@ -2,6 +2,7 @@
|
|||||||
package rtask
|
package rtask
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"go_dreamfactory/lego/sys/log"
|
||||||
"go_dreamfactory/pb"
|
"go_dreamfactory/pb"
|
||||||
"go_dreamfactory/sys/configure"
|
"go_dreamfactory/sys/configure"
|
||||||
cfg "go_dreamfactory/sys/configure/structs"
|
cfg "go_dreamfactory/sys/configure/structs"
|
||||||
@ -35,10 +36,15 @@ func (this *ModelRtaskRecord) overrideUpdate(uid string, cfg *cfg.GameRdtaskCond
|
|||||||
}
|
}
|
||||||
|
|
||||||
if v, ok := record.Vals[cfg.Id]; ok {
|
if v, ok := record.Vals[cfg.Id]; ok {
|
||||||
dd := hasUpdateData(paramLen, v, vals...)
|
v.Data = hasUpdateData(paramLen, v, vals...)
|
||||||
if len(v.Data) > 0 {
|
if len(v.Data) > 0 {
|
||||||
|
this.moduleRtask.Debug("打印V",
|
||||||
|
log.Field{Key: "v", Value: v.Data},
|
||||||
|
log.Field{Key: "paramLen", Value: paramLen},
|
||||||
|
log.Field{Key: "vals", Value: vals},
|
||||||
|
)
|
||||||
update := map[string]interface{}{
|
update := map[string]interface{}{
|
||||||
"vals": dd,
|
"vals": record.Vals,
|
||||||
}
|
}
|
||||||
if err = this.Change(uid, update); err != nil {
|
if err = this.Change(uid, update); err != nil {
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user