aa
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user