2 Star 2 Fork 4

smooth / zanePerfor

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
app.js 495 Bytes
一键复制 编辑 原始数据 按行查看 历史
wangweianger 提交于 2019-04-12 10:00 . 统计时间粒度更新
'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();
}
});
};
JavaScript
1
https://gitee.com/smooth00/zanePerfor.git
git@gitee.com:smooth00/zanePerfor.git
smooth00
zanePerfor
zanePerfor
master

搜索帮助