MK (fengmk2)
MK (fengmk2)
如 https://github.com/flowxjs/npm/blob/master/src/adapters/http/controller/extra.controller.ts#L46
引入「查询服务」
https://www.yuque.com/liberty/rf322x/gxtqnp#VxDZb 有比较多查询请求,目前混杂在 Service 和 Repository 层,有一些是直接从 Repository 读取数据,有一些是从 Service 读数据。 如果引入查询服务,可以比较干净地分离耦合。
``` get mac address error: Error: Command failed: /bin/sh: ifconfig: command not found at ChildProcess.exithandler (child_process.js:540:15) at ChildProcess.EventEmitter.emit (events.js:99:17) at maybeClose (child_process.js:638:16) at Socket.ChildProcess.spawn.stdin (child_process.js:815:11) at Socket.EventEmitter.emit (events.js:96:17) at Socket._destroy.destroyed...
``` > os.networkInterfaces() { 'Local Area Connection': [ { address: '10.0.2.15', family: 'IPv4', internal: false } ], 'MS TCP Loopback interface': [ { address: '127.0.0.1', family: 'IPv4', internal: true }...
https://github.com/nodejs/io.js/pull/1386/files
https://github.com/koajs/qs/issues/5