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