This commit is contained in:
suyl
2021-08-23 09:58:52 +08:00
parent 59a9f31986
commit 8dcaa56ba0

View File

@@ -30,6 +30,12 @@ func (c *PurchaseHandler) onOrderComment2(a *jdapi.API, msg *jdapi.CallbackOrder
ModifyDuration: JDDJ_BAD_COMMENTS_MAX_MODIFY_TIME,
OriginalMsg: string(utils.MustMarshal(result)),
}
if orderCommend.Score == 0 {
orderCommend.Score = 1
}
if orderCommend.TagList == "null" {
orderCommend.TagList = ""
}
if result.CreateTime != nil {
orderCommend.CommentCreatedAt = result.CreateTime.GoTime()
}