Commit b6c0070f by lixinming

no message

parent 145c528f
.idea .idea
/out /out
/public
/node_modules /node_modules
/test /test
*test* *test*
......
...@@ -88,6 +88,7 @@ function uvDataFormat() { ...@@ -88,6 +88,7 @@ function uvDataFormat() {
return {startTime:`${time.getFullYear()}0101`, endTime:`${time.getFullYear()}${month}${day}`}; return {startTime:`${time.getFullYear()}0101`, endTime:`${time.getFullYear()}${month}${day}`};
} }
//用户访问量 由于拿不到用户访问量 这里使用百度云的浏览量
export async function getUV() { export async function getUV() {
const site_id = 17390466;//这里获取的是 玑脉大平台 日活数据 const site_id = 17390466;//这里获取的是 玑脉大平台 日活数据
let {startTime, endTime} = uvDataFormat(); let {startTime, endTime} = uvDataFormat();
...@@ -240,3 +241,4 @@ export async function getRecentlyActivityStats(startTime, endTime) { ...@@ -240,3 +241,4 @@ export async function getRecentlyActivityStats(startTime, endTime) {
} }
return resultList; return resultList;
} }
import { getBaiduStats } from "./data/interface/baiduStats";
import { initQueueData } from "./data/interface/queueData"; import { initQueueData } from "./data/interface/queueData";
import { initUser } from "./data/user/user"; import { initUser } from "./data/user/user";
import { httpServer } from "./net/http_server"; import { httpServer } from "./net/http_server";
...@@ -13,12 +12,8 @@ async function lanuch() { ...@@ -13,12 +12,8 @@ async function lanuch() {
} }
initUser(); initUser();
httpServer.createServer(getPort()); httpServer.createServer(getPort());
await test();
} }
async function test() {
// getBaiduStats();
}
lanuch(); lanuch();
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment