- add Updatetime in JxBadComments

This commit is contained in:
gazebo
2019-02-19 10:28:55 +08:00
parent 9b9cade4ab
commit 61b542a822
4 changed files with 46 additions and 20 deletions

View File

@@ -107,10 +107,15 @@ func (c *PurchaseHandler) onOrderComment(msg *jdapi.CallbackOrderMsg) (err error
order, err2 := partner.CurOrderManager.LoadOrder(msg.BillID, model.VendorIDJD)
if err = err2; err == nil {
comment.Jxstoreid = utils.Int2Str(jxutils.GetSaleStoreIDFromOrder(order))
comment.Userphone = order.ConsigneeMobile
if order.ConsigneeMobile2 == "" {
comment.Userphone = order.ConsigneeMobile
} else {
comment.Userphone = order.ConsigneeMobile2
}
}
}
} else {
comment.Updatetime = utils.Timestamp2Str(utils.MustInterface2Int64(result["updateTime"].(map[string]interface{})["time"]) / 1000)
comment.UpdatedMsg = string(utils.MustMarshal(result))
comment.UpdatedScore = score
comment.UpdatedScorecontent = utils.Interface2String(result["score4Content"])