- replace all goroutine and AfterFunc with recover version
This commit is contained in:
@@ -40,9 +40,9 @@ func (c *PurchaseHandler) onWaybillMsg(msg *mtwmapi.CallbackMsg) (response *mtwm
|
||||
msg.Data.Set("utime", msg.Data.Get("timestamp"))
|
||||
msg.Data.Set(mtwmapi.KeyOrderID, waybill.VendorOrderID)
|
||||
msg.Data.Set("status", mtwmapi.OrderStatusDelivering)
|
||||
go func() {
|
||||
utils.CallFuncAsync(func() {
|
||||
OnOrderCallbackMsg(msg)
|
||||
}()
|
||||
})
|
||||
}
|
||||
return mtwmapi.Err2CallbackResponse(err, "")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user