Commit b8ec4154 by 孙香冬

no message

parent c7ca7d8d
......@@ -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;
})
......
......@@ -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())
......
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