- continue refactoring...

This commit is contained in:
gazebo
2018-08-17 16:42:16 +08:00
parent d40186e930
commit c5db19045d
33 changed files with 656 additions and 178 deletions

View File

@@ -33,13 +33,12 @@ func (c *ELMOrderController) MsgPost() {
callbackResponse = cc.OrderMessage(obj)
}
if globals.CallNewMsgHandler {
cc2 := &elm.Controller{}
if globals.CallLegacyMsgHandler {
utils.CallFuncAsync(func() {
cc2.OnCallbackMsg(obj)
elm.OnCallbackMsg(obj)
})
} else {
callbackResponse = cc2.OnCallbackMsg(obj)
callbackResponse = elm.OnCallbackMsg(obj)
}
}
}