把会在 require('Action.js') 时就执行的 wo.Netnode.on('broadcast', DAD.api.prepare) 删除(迁移到 node.server/server.js 里),解除 Action 对 wo.Netnode 的依赖,否则前端引入 Action 也需要依赖后台的网络而无法启动。
This commit is contained in:
parent
48b1cb4bd6
commit
f527f942b6
@ -181,7 +181,6 @@ DAD.api.prepare = async function (option) {
|
|||||||
}
|
}
|
||||||
return null // 非法的交易数据
|
return null // 非法的交易数据
|
||||||
}
|
}
|
||||||
wo.Netnode.on('broadcast', DAD.api.prepare)
|
|
||||||
/** ******************** Private in class *******************/
|
/** ******************** Private in class *******************/
|
||||||
|
|
||||||
DAD.actionPool = {} // 交易池,在执行getActionBatch时被清空
|
DAD.actionPool = {} // 交易池,在执行getActionBatch时被清空
|
||||||
|
Loading…
Reference in New Issue
Block a user