1 Star 0 Fork 0

dairoot / zanePerfor

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
app.js 531 Bytes
一键复制 编辑 原始数据 按行查看 历史
wangweianger 提交于 2020-11-26 17:57 . update
'use strict';
module.exports = async app => {
app.models = {};
app.beforeStart(async () => {
const ctx = app.createAnonymousContext();
if (app.config.report_data_type === 'kafka') {
// kafka消费者
ctx.service.web.reportTask.saveWebReportDatasForKafka();
ctx.service.wx.reportTask.saveWxReportDatasForKafka();
} else if (app.config.report_data_type === 'redisPubSub') {
ctx.service.wx.reportTask.saveWxReportDatasForRedisPubSub();
}
});
};
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/dairoott/zane-perfor.git
git@gitee.com:dairoott/zane-perfor.git
dairoott
zane-perfor
zanePerfor
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891