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