From b27f1ca8f9cb8023560d79312c2f330470e8f26c Mon Sep 17 00:00:00 2001 From: meixiongfeng <766881921@qq.com> Date: Wed, 9 Nov 2022 09:59:46 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8C=87=E9=92=88=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/user/model_expand.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/user/model_expand.go b/modules/user/model_expand.go index a4ee54f1e..f2a74014c 100644 --- a/modules/user/model_expand.go +++ b/modules/user/model_expand.go @@ -27,11 +27,11 @@ func (this *ModelExpand) Init(service core.IService, module core.IModule, comp c //获取用户通过扩展表 func (this *ModelExpand) GetUserExpand(uid string) (result *pb.DBUserExpand, err error) { result = &pb.DBUserExpand{} - if this.module.IsCross() { + if db.IsCross() { if model, err := this.module.GetDBNoduleByUid(uid, this.TableName, this.Expired); err != nil { this.module.Errorln(err) } else { - if err = model.Get(uid, &result); err != nil && mongo.ErrNoDocuments != err { + if err = model.Get(uid, result); err != nil && mongo.ErrNoDocuments != err { this.module.Errorf("err:%v", err) } } @@ -52,7 +52,7 @@ func (this *ModelExpand) ChangeUserExpand(uid string, value map[string]interface var ( model *db.DBModel ) - if this.module.IsCross() { + if db.IsCross() { if model, err = this.module.GetDBNoduleByUid(uid, this.TableName, this.Expired); err == nil { return model.Change(uid, value) } else {