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