feat:优化项目信息

This commit is contained in:
henry
2022-02-08 16:11:59 +08:00
parent 166753d811
commit 17dd9bea7f
7 changed files with 109 additions and 21 deletions

View File

@ -248,7 +248,7 @@ func (c *Examine) Launch(id uint64, identity, status int, remark string, params
return err
}
if err = model2.UpdatesWhere(mUserInstance.UserInstance, map[string]interface{}{
"identity": mUserInstance.Identity | identity, "updated_at": now,
"identity": v.Identity | identity, "updated_at": now,
}, []*model2.ModelWhere{
model2.NewWhere("id", v.ID),
}, tx); err != nil {
@ -264,7 +264,7 @@ func (c *Examine) Launch(id uint64, identity, status int, remark string, params
if err := json.Unmarshal([]byte(cache), _session); err != nil {
return err
}
_session.Identity = mUserInstance.Identity | identity
_session.Identity = v.Identity | identity
if userIdentity.IsSelected == model2.UserIdentitySelectedForYes {
_session.SelectIdentity = identity