This commit is contained in:
gazebo
2019-03-08 16:03:27 +08:00
parent 8bcf464193
commit 9d5381a8d8
2 changed files with 6 additions and 5 deletions

View File

@@ -14,9 +14,10 @@ type DefAuther struct {
// 此函数为空
func (a *DefAuther) AddAuthBind(authBindEx *auth2.AuthBindEx, userName string) (err error) {
dao.WrapAddIDCULDEntity(&authBindEx.AuthBind, userName)
authBindEx.Status = model.AuthBindStatusNormal
err = dao.CreateEntity(nil, &authBindEx.AuthBind)
authBind := &authBindEx.AuthBind
dao.WrapAddIDCULDEntity(authBind, userName)
authBind.Status = model.AuthBindStatusNormal
err = dao.CreateEntity(nil, authBind)
return err
}