Toggle navigation
Toggle navigation
This project
Loading...
Sign in
오윤석
/
maplespec.ga
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
4
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
오윤석
2020-06-11 06:00:25 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
3ca25d827c9e51ac9315c453d8369ab6d1ec64e2
3ca25d82
1 parent
216d8f73
indexOf가 0인 경우도 찾은 경우임
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
app/node/routes/character.js
app/node/routes/character.js
View file @
3ca25d8
...
...
@@ -21,7 +21,7 @@ const getCharacterInfo = async function(nickname, characterCode) {
try
{
const
resp
=
await
axios
.
get
(
"https://maplestory.nexon.com/Common/Character/Detail/"
+
encodeURI
(
nickname
)
+
"?p="
+
characterCode
);
if
(
resp
.
data
.
indexOf
(
"공개하지 않은 정보입니다."
)
>
0
)
{
if
(
resp
.
data
.
indexOf
(
"공개하지 않은 정보입니다."
)
>
=
0
)
{
throw
new
Error
(
"private_character"
);
}
...
...
@@ -125,7 +125,7 @@ const analyzeEquipment = async function(nickname, characterCode, job) {
try
{
const
resp
=
await
axios
.
get
(
"https://maplestory.nexon.com/Common/Character/Detail/"
+
encodeURI
(
nickname
)
+
"/Equipment?p="
+
characterCode
);
if
(
resp
.
data
.
indexOf
(
"공개하지 않은 정보입니다."
)
>
0
)
{
if
(
resp
.
data
.
indexOf
(
"공개하지 않은 정보입니다."
)
>
=
0
)
{
throw
new
Error
(
"private_character"
);
}
...
...
Please
register
or
login
to post a comment