This commit is contained in:
gazebo
2019-03-12 21:11:18 +08:00
parent 9bfdb782bf
commit aeddf01cbd
2 changed files with 4 additions and 4 deletions

View File

@@ -74,7 +74,7 @@ func (c *OrderManager) OnOrderComments(orderCommentList []*model.OrderComment) (
comment2 := &legacymodel.JxBadComments{
OrderId: orderComment.VendorOrderID,
}
err := dao.GetEntity(db, &comment2, model.FieldVendoOrderID)
err := dao.GetEntity(db, comment2, model.FieldVendoOrderID)
if err == nil || dao.IsNoRowsError(err) {
isNewComment := false
if dao.IsNoRowsError(err) {

View File

@@ -71,7 +71,8 @@ var (
func (c *PurchaseHandler) onOrderComment(msg *jdapi.CallbackOrderMsg) (err error) {
globals.SugarLogger.Debugf("onOrderComment orderID:%s", msg.BillID)
go func() error {
utils.CallFuncAsync(func() {
c.onOrderComment2(msg)
intOrderID := utils.Str2Int64(msg.BillID)
result, err := api.JdAPI.GetCommentByOrderId(intOrderID)
@@ -141,8 +142,7 @@ func (c *PurchaseHandler) onOrderComment(msg *jdapi.CallbackOrderMsg) (err error
if err != nil {
globals.SugarLogger.Warnf("onOrderComment orderID:%s failed with error:%v", msg.BillID, err)
}
return err
}()
})
return err
}