This commit is contained in:
邹宗楠
2025-11-10 09:52:12 +08:00
parent 487724645b
commit 474d3da18f
14 changed files with 166 additions and 18 deletions

View File

@@ -229,6 +229,21 @@ func (c *DjswController) OrderInfoChange() {
}
}
// ApplyOrderInvoiceStatus 发票申请
func (c *DjswController) ApplyOrderInvoiceStatus() {
if c.Ctx.Input.Method() == http.MethodPost {
callbackResponse := c.handleMsg(func(a *jdapi.API, obj interface{}) (callbackResponse *jdapi.CallbackResponse) {
callbackResponse = jd.OnInvoiceMsg(obj.(*jdapi.CallbackInvoiceMsg))
return callbackResponse
})
callbackResponse = jdapi.Err2CallbackResponse(nil, "")
c.Data["json"] = c.transferResponse("StoreCrud", callbackResponse)
c.ServeJSON()
} else {
c.Abort("404")
}
}
//免费开卡接不到回调
//func (c *DjswController) MemberCreateCard() {
// if c.Ctx.Input.Method() == http.MethodPost {