This commit is contained in:
邹宗楠
2025-10-23 15:44:42 +08:00
parent 5eb7b6793a
commit 297bdd950d
2 changed files with 4 additions and 10 deletions

View File

@@ -155,16 +155,10 @@ func (c *MtwmController) Invoice() {
c.ServeJSON()
return
}
globals.SugarLogger.Debugf("mtwm------Invoice:= %s", utils.Format4Output(msg.FormData, false))
ddmsg.SendUserMessage(dingdingapi.MsgTyeText, "2452A93EEB9111EC9B06525400E86DC0", "MtwmController发票推送", utils.Format4Output(msg.FormData, false))
ddmsg.SendUserMessage(dingdingapi.MsgTyeText, "2452A93EEB9111EC9B06525400E86DC0", "MtwmController发票推送", utils.Format4Output(msg, false))
data := &mtwmapi.InvoiceCallback{}
byteData, _ := json.Marshal(msg.Data)
if err := json.Unmarshal(byteData, data); err != nil {
c.Data["json"] = map[string]interface{}{"result_code": -1}
c.ServeJSON()
return
}
utils.Map2StructByJson(utils.URLValues2Map(msg.FormData), data, false)
// 消息通知
if err := mtwm.InvoiceCallback(data); err != nil {