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-20 22:41:05 +0900
Browse Files
Options
Browse Files
Download
Plain Diff
Commit
310da5a39915a1c21cb026a42209432f61d48cee
310da5a3
2 parents
0e7cf3de
617fc43f
Merge branch 'release'
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
0 deletions
app/node/model/character.js
app/node/routes/character.js
app/web/src/routes/Character.svelte
app/node/model/character.js
View file @
310da5a
...
...
@@ -119,6 +119,12 @@ const getCharacterInfo = async function(nickname, characterCode) {
}
});
stats
.
major
=
0
;
if
(
stats
.
major
==
0
)
{
throw
new
Error
(
"no_major_stats"
)
}
return
{
character
:
character
,
stats
:
stats
...
...
@@ -129,6 +135,8 @@ const getCharacterInfo = async function(nickname, characterCode) {
return
-
1
;
else
if
(
error
.
message
==
"game_checking"
)
return
-
2
;
else
if
(
error
.
message
==
"no_major_stats"
)
return
-
3
;
else
return
-
999
;
}
...
...
app/node/routes/character.js
View file @
310da5a
...
...
@@ -28,6 +28,10 @@ module.exports = {
// 점검중
res
.
status
(
503
).
send
();
return
;
}
else
if
(
characterInfo
==
-
3
)
{
// 데이터를 받아오지 못함
res
.
status
(
502
).
send
();
return
;
}
else
if
(
characterInfo
<
0
)
{
res
.
status
(
400
).
send
();
return
;
...
...
app/web/src/routes/Character.svelte
View file @
310da5a
...
...
@@ -125,6 +125,9 @@
window.open("https://maplestory.nexon.com/MyMaple/Account/Character/Visibility");
}, 2000);
break;
case 502:
M.toast({html:"메이플스토리로부터 데이터를 받아오지 못했습니다.<br><br>잠시 후에 시도해주세요."});
break;
case 503:
M.toast({html:"메이플스토리가 점검중입니다."});
break;
...
...
Please
register
or
login
to post a comment