Toggle navigation
Toggle navigation
This project
Loading...
Sign in
ShinSeungMin
/
Multiplex_Ticketing_Platform
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
ShinSeungMin
2022-06-09 01:04:37 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
2101c1a930b2ad3b13ef86cb41af48dde0a5a8b0
2101c1a9
1 parent
fae6f573
Add CGV Date Eerrorhandling
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletions
Chatbot_Demo/app.js
Chatbot_Demo/app.js
View file @
2101c1a
...
...
@@ -150,14 +150,19 @@ app.post('/hook', asyncHandler(async (req, res, next) => {
//날짜 확인 및 날짜, 장소에 대해 상영중인 영화 리스트 가져오기
if
(
moment
(
message
.
text
,
"YYYYMMDD"
,
true
).
isValid
()
&&
CGV_flag
==
3
)
{
CGV_date
=
message
.
text
;
let
today
=
GettingToday
();
//오늘 이후인지 확인하기 위해 날짜 가져옴
//console.log(MEGA_date, MEGA_TheaterLocation);
if
(
CGV_date
&&
CGV_SelectedTheater
)
{
if
(
today
<=
CGV_date
&&
CGV_date
&&
CGV_SelectedTheater
)
{
CGV_accessible_movies
=
await
CGV
.
getMovieChart
(
5
);
const
text1
=
"현재상영작을 가져오는 중입니다."
;
const
text2
=
"잠시만 기다려주세요."
;
PushMessage
(
text1
,
text2
);
console
.
log
(
CGV_accessible_movies
);
CGV_flag
++
;
}
else
{
const
text1
=
"영화를 보실 날짜를 다시 입력해주세요."
;
const
text2
=
"ex)20020409"
;
SendMessage
(
eventObj
,
text1
,
text2
);
}
//원본 코드
// MEGA_date = parseInt(eventObj.message.text);
...
...
Please
register
or
login
to post a comment