Toggle navigation
Toggle navigation
This project
Loading...
Sign in
최은석
/
ossw-project
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
최은석
2022-06-08 01:36:43 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
0a159cec40907d7448aabd0f63d5439560ef190c
0a159cec
1 parent
59016325
Update api.js
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
server/Router/api.js
server/Router/api.js
View file @
0a159ce
...
...
@@ -210,7 +210,7 @@ router.get('/api/waiting', async (req, res) => {
if
(
waitingList
==
null
)
waitingList
=
[]
else
waitingList
=
waitingList
.
waiting
;
const
date
=
new
Date
();
const
date
=
getKST
Date
();
var
hour
=
date
.
getHours
();
hour
=
hour
<
10
?
'0'
+
hour
.
toString
()
:
hour
.
toString
();
var
minute
=
date
.
getMinutes
();
...
...
@@ -270,7 +270,7 @@ router.get('/api/menuList', async (req, res) => {
let
newRequest
=
new
XMLHttpRequest
();
newRequest
.
onreadystatechange
=
()
=>
{
if
(
newRequest
.
status
==
200
&&
newRequest
.
readyState
==
4
)
{
var
dt
=
new
Date
();
var
dt
=
getKST
Date
();
if
(
dt
.
getDay
()
==
0
||
dt
.
getDay
()
==
6
)
{
resJSON0
=
JSON
.
parse
(
newRequest
.
responseText
).
root
[
0
].
LASTNEXT
[
0
]
resJSON1
=
JSON
.
parse
(
newRequest
.
responseText
).
root
[
0
].
LASTNEXT
[
1
]
...
...
@@ -318,7 +318,7 @@ router.get('/api/todayMenu', async (req, res) => {
let
newRequest
=
new
XMLHttpRequest
();
newRequest
.
onreadystatechange
=
()
=>
{
if
(
newRequest
.
status
==
200
&&
newRequest
.
readyState
==
4
)
{
var
dt
=
new
Date
();
var
dt
=
getKST
Date
();
if
(
dt
.
getDay
()
>
0
&&
dt
.
getDay
()
<
6
)
{
resJSON
=
JSON
.
parse
(
newRequest
.
responseText
).
root
[
0
].
WEEKLYMENU
[
0
];
const
weekMenu
=
setting
(
resJSON
);
...
...
Please
register
or
login
to post a comment