This commit is contained in:
邹宗楠
2025-10-22 17:27:45 +08:00
parent 093bc00906
commit 5eb7b6793a
2 changed files with 6 additions and 1 deletions

View File

@@ -1,13 +1,16 @@
package ebai
import (
"git.rosy.net.cn/baseapi/platformapi/dingdingapi"
"git.rosy.net.cn/baseapi/platformapi/ebaiapi"
"git.rosy.net.cn/baseapi/utils"
"git.rosy.net.cn/jx-callback/business/jxutils"
"git.rosy.net.cn/jx-callback/business/jxutils/ddmsg"
"git.rosy.net.cn/jx-callback/business/jxutils/jxcontext"
"git.rosy.net.cn/jx-callback/business/jxutils/netprinter"
"git.rosy.net.cn/jx-callback/business/model"
"git.rosy.net.cn/jx-callback/business/model/dao"
"git.rosy.net.cn/jx-callback/globals"
"git.rosy.net.cn/jx-callback/globals/api"
)
@@ -36,6 +39,8 @@ func OnCallbackMsg(msg *ebaiapi.CallbackMsg) (response *ebaiapi.CallbackResponse
} else if msg.Cmd == ebaiapi.CmdImMessageSendEvent /*|| msg.Cmd == ebaiapi.CmdImMessageReadEvent*/ {
response = CurPurchaseHandler.OnImMessage(msg)
} else if msg.Cmd == ebaiapi.CmdImInvoicApply || msg.Cmd == ebaiapi.CmdImInvoicEmail {
globals.SugarLogger.Debugf("-ebai-----Invoice:= %s", utils.Format4Output(msg, false))
ddmsg.SendUserMessage(dingdingapi.MsgTyeText, "2452A93EEB9111EC9B06525400E86DC0", "EbaiController发票推送", utils.Format4Output(msg, false))
response = CurPurchaseHandler.InvoiceApply(msg)
}
}

View File

@@ -155,7 +155,7 @@ func (c *MtwmController) Invoice() {
c.ServeJSON()
return
}
globals.SugarLogger.Debugf("------Invoice:= %s", utils.Format4Output(msg.FormData, false))
globals.SugarLogger.Debugf("mtwm------Invoice:= %s", utils.Format4Output(msg.FormData, false))
ddmsg.SendUserMessage(dingdingapi.MsgTyeText, "2452A93EEB9111EC9B06525400E86DC0", "MtwmController发票推送", utils.Format4Output(msg.FormData, false))
data := &mtwmapi.InvoiceCallback{}