pull/218/head
wangchuxiao 4 years ago
parent dbdb516f3c
commit c39f5a27b2

@ -78,7 +78,7 @@ func (s *officeServer) GetUserTags(_ context.Context, req *pbOffice.GetUserTagsR
resp.CommonResp.ErrCode = constant.ErrDB.ErrCode
return resp, nil
}
log.NewDebug(req.OperationID, utils.GetSelfFuncName(), "tags: ", tags)
log.NewInfo(req.OperationID, utils.GetSelfFuncName(), "tags: ", tags)
for _, v := range tags {
tag := &pbOffice.Tag{
TagID: v.TagID,

@ -80,7 +80,7 @@ func GetUserNameByUserID(userID string) (string, error) {
return "", err
}
var userName string
err = dbConn.Table("users").Select("name").Where("user_id=?", userID).Find(&userName).Error
err = dbConn.Table("users").Select("name").Where("user_id=?", userID).First(&userName).Error
if err != nil {
return "", err
}

Loading…
Cancel
Save