Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tikeyi
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
node_server
tikeyi
Commits
b6c0070f
Commit
b6c0070f
authored
Jul 17, 2023
by
lixinming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
145c528f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
7 deletions
+4
-7
.gitignore
.gitignore
+1
-0
baiduStats.ts
src/data/interface/baiduStats.ts
+3
-2
main.ts
src/main.ts
+0
-5
No files found.
.gitignore
View file @
b6c0070f
.idea
/out
/public
/node_modules
/test
*test*
...
...
src/data/interface/baiduStats.ts
View file @
b6c0070f
...
...
@@ -88,6 +88,7 @@ function uvDataFormat() {
return
{
startTime
:
`
${
time
.
getFullYear
()}
0101`
,
endTime
:
`
${
time
.
getFullYear
()}${
month
}${
day
}
`
};
}
//用户访问量 由于拿不到用户访问量 这里使用百度云的浏览量
export
async
function
getUV
()
{
const
site_id
=
17390466
;
//这里获取的是 玑脉大平台 日活数据
let
{
startTime
,
endTime
}
=
uvDataFormat
();
...
...
@@ -239,4 +240,5 @@ export async function getRecentlyActivityStats(startTime, endTime) {
resultList
.
push
({
key
:
titleList
[
i
][
0
],
value
});
}
return
resultList
;
}
\ No newline at end of file
}
src/main.ts
View file @
b6c0070f
import
{
getBaiduStats
}
from
"./data/interface/baiduStats"
;
import
{
initQueueData
}
from
"./data/interface/queueData"
;
import
{
initUser
}
from
"./data/user/user"
;
import
{
httpServer
}
from
"./net/http_server"
;
...
...
@@ -13,12 +12,8 @@ async function lanuch() {
}
initUser
();
httpServer
.
createServer
(
getPort
());
await
test
();
}
async
function
test
()
{
// getBaiduStats();
}
lanuch
();
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment