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 {