From d6bf9b0505c9e4126ed361c1c296174f39d388a2 Mon Sep 17 00:00:00 2001 From: liwei1dao Date: Thu, 25 Jan 2024 17:49:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=8E=A0=E5=A4=BA=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E5=AD=98=E5=82=A8=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/plunder/model_record.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/plunder/model_record.go b/modules/plunder/model_record.go index 2b3b3727b..72e3988df 100644 --- a/modules/plunder/model_record.go +++ b/modules/plunder/model_record.go @@ -22,7 +22,7 @@ func (this *modelRecord) Init(service core.IService, module core.IModule, comp c func (this *modelRecord) getPlunderRecordData(id string) (info *pb.DBPlunderRecord, err error) { info = &pb.DBPlunderRecord{} - if err = this.Get(id, info); err == mgo.MongodbNil { + if err = this.GetByID(id, info); err == mgo.MongodbNil { info.Id = id err = this.Add(id, info) return @@ -31,7 +31,7 @@ func (this *modelRecord) getPlunderRecordData(id string) (info *pb.DBPlunderReco } func (this *modelRecord) changePlunderRecordData(id string, update map[string]interface{}) (err error) { - err = this.Change(id, update) + err = this.ChangeById(id, update) return }