feat:优化项目信息
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user