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

@@ -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
}