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 20:28:41 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
8b6ae06c9272ade3f13c9dc9ed663c5bebdcd3ba
8b6ae06c
1 parent
cb7c0584
Update app.js
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
app.js
app.js
View file @
8b6ae06
...
...
@@ -99,12 +99,11 @@ async function handleEvent(event) {
request
.
post
(
options
,
function
(
error
,
response
,
body
)
{
let
jsonResponse
=
JSON
.
stringify
(
JSON
.
parse
(
body
),
null
,
' '
);
jsonResponse
=
jsonResponse
.
toString
()
console
.
log
(
jsonResponse
);
text
=
''
;
while
(
jsonResponse
.
indexOf
(
'text'
)
!=-
1
)
{
jsonResponse
=
jsonResponse
.
substring
(
jsonResponse
.
indexOf
(
'text\\'
)
+
7
);
text
+=
jsonResponse
.
substring
(
0
,
jsonResponse
.
indexOf
(
"\\"
)
-
1
)
+
" "
;
jsonResponse
=
jsonResponse
.
substring
(
jsonResponse
.
indexOf
(
'text\\'
)
+
9
);
text
+=
jsonResponse
.
substring
(
0
,
jsonResponse
.
indexOf
(
"\\"
))
+
" "
;
}
...
...
Please
register
or
login
to post a comment