This commit is contained in:
suyl
2021-05-13 17:34:24 +08:00
parent 0390cfbf67
commit f9bdd78e2d
2 changed files with 41 additions and 2 deletions

View File

@@ -238,7 +238,7 @@ func (c *DjswController) OrderInfoChange() {
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))
callbackResponse = jd.MemberCreateMsg(obj.(*jdapi.CallbackMemberMsg))
return callbackResponse
})
c.Data["json"] = c.transferResponse("MemberCreateCard", callbackResponse)
@@ -251,7 +251,7 @@ func (c *DjswController) MemberCreateCard() {
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))
callbackResponse = jd.MemberRenewMsg(obj.(*jdapi.CallbackMemberMsg))
return callbackResponse
})
c.Data["json"] = c.transferResponse("MemberRenewCard", callbackResponse)