更新版本号

This commit is contained in:
lyswhut
2023-02-28 18:29:42 +08:00
parent 3b70acc3ca
commit e75ab3a7d7
3 changed files with 5 additions and 4 deletions
+2 -1
View File
@@ -110,9 +110,10 @@ function onSocketError(err: Error) {
const handleStartServer = async(port = 9527, ip = '0.0.0.0') => await new Promise((resolve, reject) => {
httpServer = http.createServer((req, res) => {
// console.log(req.url)
const endUrl = `/${req.url?.split('/').at(-1) ?? ''}`
let code
let msg
switch (req.url) {
switch (endUrl) {
case '/hello':
code = 200
msg = SYNC_CODE.helloMsg