This commit is contained in:
邹宗楠
2025-10-23 16:42:17 +08:00
parent b027bc2563
commit 3fa6b2457f

View File

@@ -169,15 +169,15 @@ func pushIMToGyOrPet(msg *mtwmapi.ImCallbackMsg, serverType string) {
func InvoiceCallback(invoice *mtwmapi.InvoiceCallback) (err error) {
var db = dao.GetDB()
localOrder, _ := partner.CurOrderManager.LoadOrder(invoice.OrderId, model.VendorIDMTWM)
//if localOrder == nil {
// return fmt.Errorf("订单不存在:%s", invoice.OrderId)
//}
if localOrder == nil {
return fmt.Errorf("订单不存在:%s", invoice.OrderId)
}
invoiceData, _ := dao.GetInvoiceInfo(db, invoice.OrderId)
if invoiceData == nil {
invoiceObj := &model.InvoiceMsg{
ModelIDCUL: model.ModelIDCUL{},
OrderId: invoice.OrderId,
//StoreID: localOrder.JxStoreID,
ModelIDCUL: model.ModelIDCUL{},
OrderId: invoice.OrderId,
StoreID: localOrder.JxStoreID,
VendorID: model.VendorIDMTWM,
Status: model.InvoiceStatusInit,
InvoiceTaskId: invoice.InvoiceTaskId,