Toggle navigation
Toggle navigation
This project
Loading...
Sign in
은승우
/
LINEBOT
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
은승우
2019-12-05 19:44:49 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
8854c4d5d56acbb1ed36ecfe351ad88909b64715
8854c4d5
1 parent
dfd4430d
Update app.js
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
app.js
app.js
View file @
8854c4d
...
...
@@ -102,10 +102,10 @@ async function handleEvent(event) {
let
jsonResponse
=
JSON
.
stringify
(
JSON
.
parse
(
body
),
null
,
' '
);
jsonResponse
=
jsonResponse
.
toString
()
console
.
log
(
jsonResponse
);
while
(
jsonResponse
.
indexOf
(
'text
\\
'
)
!=-
1
)
while
(
jsonResponse
.
indexOf
(
'text'
)
!=-
1
)
{
jsonResponse
=
jsonResponse
.
substring
(
jsonResponse
.
indexOf
(
'text
\\'
)
+
9
);
text
+=
jsonResponse
.
substring
(
0
,
jsonResponse
.
indexOf
(
"
\\
"
))
+
" "
;
jsonResponse
=
jsonResponse
.
substring
(
jsonResponse
.
indexOf
(
'text
'
)
+
5
);
text
+=
jsonResponse
.
substring
(
0
,
jsonResponse
.
indexOf
(
"
}
"
))
+
" "
;
console
.
log
(
"text:"
+
text
);
}
...
...
Please
register
or
login
to post a comment