Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
motorCity
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
motorCity
Commits
db9a1f92
Commit
db9a1f92
authored
Sep 01, 2022
by
lixinming
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://123.207.147.179:8888/node_server/motorCity
parents
e3407c83
87de5ff9
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
3 deletions
+4
-3
吉利.png
images/img/吉利.png
+0
-0
data.ts
src/biz/jgfwnl/data.ts
+3
-2
http_server.ts
src/net/http_server.ts
+1
-1
嘉定汽车城用户手册.docx
嘉定汽车城用户手册.docx
+0
-0
No files found.
images/img/吉利.png
0 → 100644
View file @
db9a1f92
3.09 KB
src/biz/jgfwnl/data.ts
View file @
db9a1f92
...
...
@@ -83,6 +83,7 @@ export async function getCSFX(req, res) {
let
frequency
=
separateDataAndUint
(
item
.
次数
).
dataNum
;
let
kilometer
=
separateDataAndUint
(
item
.
里程
).
dataNum
;
let
ratio
=
Math
.
ceil
(
frequency
/
kilometer
*
100
);
if
(
ratio
>
100
)
ratio
=
100
;
item
[
"比率"
]
=
ratio
;
})
...
...
@@ -147,8 +148,8 @@ export async function mapData(req, res) {
"摄像头"
:
cameraData
.
length
,
"激光雷达"
:
lidarData
.
length
,
// "毫米波雷达":millimeterWaveRadarData.length,
"
RSU
"
:
RSUData
.
length
,
"
SIBOX
"
:
SIBOXData
.
length
"
路侧单元
"
:
RSUData
.
length
,
"
信号灯数据采集器
"
:
SIBOXData
.
length
};
ret
[
"base"
]
=
getKeyValueNumberOutData
(
"计算云资源"
,
基础数据
data
);
...
...
src/net/http_server.ts
View file @
db9a1f92
...
...
@@ -29,7 +29,7 @@ export class httpServer {
httpServer
.
use
(
express
.
static
(
path
.
join
(
__dirname
,
"../../images"
))
);
httpServer
.
use
(
express
.
static
(
'video'
)
);
httpServer
.
use
(
express
.
static
(
path
.
join
(
__dirname
,
"../../video"
))
);
httpServer
.
use
(
bodyParser
.
json
({
limit
:
"10kb"
}));
httpServer
.
use
(
compression
())
...
...
嘉定汽车城用户手册.docx
0 → 100644
View file @
db9a1f92
File added
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