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