This commit is contained in:
suyl
2021-05-13 16:37:51 +08:00
parent 8d3dfe406a
commit 0390cfbf67
3 changed files with 33 additions and 5 deletions

View File

@@ -221,6 +221,7 @@ func (c *DjswController) UpdateSku() {
func (c *DjswController) OrderAddTips() {
c.orderStatus()
}
func (c *DjswController) OrderInfoChange() {
if c.Ctx.Input.Method() == http.MethodPost {
callbackResponse := c.handleMsg(func(a *jdapi.API, obj interface{}) (callbackResponse *jdapi.CallbackResponse) {
@@ -234,6 +235,28 @@ func (c *DjswController) OrderInfoChange() {
}
}
// func (c *DjswController) OrderInfoChange() {
// c.orderStatus()
// }
func (c *DjswController) MemberCreateCard() {
if c.Ctx.Input.Method() == http.MethodPost {
callbackResponse := c.handleMsg(func(a *jdapi.API, obj interface{}) (callbackResponse *jdapi.CallbackResponse) {
callbackResponse = jd.OnOrderInfoChangeMsg(obj.(*jdapi.CallbackOrderInfoChangeMsg))
return callbackResponse
})
c.Data["json"] = c.transferResponse("MemberCreateCard", callbackResponse)
c.ServeJSON()
} else {
c.Abort("404")
}
}
func (c *DjswController) MemberRenewCard() {
if c.Ctx.Input.Method() == http.MethodPost {
callbackResponse := c.handleMsg(func(a *jdapi.API, obj interface{}) (callbackResponse *jdapi.CallbackResponse) {
callbackResponse = jd.OnOrderInfoChangeMsg(obj.(*jdapi.CallbackOrderInfoChangeMsg))
return callbackResponse
})
c.Data["json"] = c.transferResponse("MemberRenewCard", callbackResponse)
c.ServeJSON()
} else {
c.Abort("404")
}
}