From 9bff8840e5abf6d6a1cf9d88383ad00805ee480f Mon Sep 17 00:00:00 2001 From: gazebo Date: Tue, 3 Sep 2019 15:51:15 +0800 Subject: [PATCH] =?UTF-8?q?-=20User.GetMobile=20and=20User.GetEmail=20bug?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- business/model/user.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/business/model/user.go b/business/model/user.go index d506eade2..e8138d299 100644 --- a/business/model/user.go +++ b/business/model/user.go @@ -1,5 +1,7 @@ package model +import "git.rosy.net.cn/baseapi/utils" + const ( UserStatusNormal = 1 UserStatusDisabled = 2 @@ -54,11 +56,11 @@ func (user *User) GetID2() string { } func (user *User) GetMobile() string { - return *user.Mobile + return utils.Pointer2String(user.Mobile) } func (user *User) GetEmail() string { - return *user.Email + return utils.Pointer2String(user.Email) } func (user *User) GetName() string {