This commit is contained in:
邹宗楠
2024-04-19 11:39:11 +08:00
parent 3a3b24b942
commit 77fe682bce

View File

@@ -145,11 +145,13 @@ func (c *DjswController) SinglePromoteCreate() {
func (c *DjswController) StoreCrud() {
if c.Ctx.Input.Method() == http.MethodPost {
callbackResponse := c.handleMsg(func(a *jdapi.API, obj interface{}) (callbackResponse *jdapi.CallbackResponse) {
globals.SugarLogger.Debugf("==========DjswController StoreCrud: %s", utils.Format4Output(obj, false))
callbackResponse = jd.OnStoreMsg(obj.(*jdapi.CallbackOrderMsg))
globals.SugarLogger.Debugf("==========c.data : %s", utils.Format4Output(c.transferResponse("StoreCrud", callbackResponse), false))
return callbackResponse
})
callbackResponse = jdapi.Err2CallbackResponse(nil, "")
c.Data["json"] = c.transferResponse("StoreCrud", callbackResponse)
globals.SugarLogger.Debugf("==========c.data : %s", utils.Format4Output(c.transferResponse("StoreCrud", callbackResponse), false))
c.ServeJSON()
} else {
c.Abort("404")