1
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user