This commit is contained in:
苏尹岚
2021-02-24 11:53:26 +08:00
parent 3d240a86a1
commit 04839ce472
3 changed files with 11 additions and 15 deletions

View File

@@ -4023,9 +4023,9 @@ func StoreConfirmAct(ctx *jxcontext.Context, status, msgStatusID int) (err error
if err = dao.GetEntity(db, msg); err != nil {
return err
}
actMap := make(map[string]interface{})
actMap := &model.MessageActInfo{}
err = json.Unmarshal([]byte(msg.ActInfo), &actMap)
if time.Now().Sub(utils.Str2Time(actMap["beginAt"].(string))) > 0 {
if time.Now().Sub(utils.Str2Time(actMap.BeginAt)) > 0 {
msgStatus.ConfirmStatus = -1
dao.WrapUpdateULEntity(msgStatus, ctx.GetUserName())
_, err = dao.UpdateEntity(db, msgStatus, "ConfirmStatus")