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