Toggle navigation
Toggle navigation
This project
Loading...
Sign in
open-source-group1
/
animal-Info
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
Eunsu486
2021-05-25 19:27:04 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
88daf62ef1a5556b8ae31929f9f90caf64716a25
88daf62e
1 parent
917c68fd
Make module
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
routes/category.js
routes/category.js
View file @
88daf62
...
...
@@ -30,15 +30,16 @@ router.get('/hospital', function (req, res) {
if
(
!
err
&&
res
.
statusCode
==
200
)
{
let
hospital_result
=
JSON
.
parse
(
body
);
let
hospitals
=
[];
for
(
let
i
=
0
;
i
<
hospital_result
.
Tbggibllbrm
[
1
].
row
.
length
;
i
++
)
{
library
=
hospital_result
.
Tbggibllbrm
[
1
].
row
[
i
];
if
(
userArea
(
library
,
'REFINE_LOTNO_ADDR'
,
user_target
))
{
hospitals
.
push
(
library
);
for
(
let
i
=
0
;
i
<
hospital_result
.
hr
[
1
].
row
.
length
;
i
++
)
{
hospital
=
hospital_result
.
hr
[
1
].
row
[
i
];
if
(
userArea
(
hospital
,
'REFINE_LOTNO_ADDR'
,
user_target
))
{
hospitals
.
push
(
hospital
);
}
}
console
.
log
([
hospitals
);
res
.
render
(
'result'
,
{
category
:
'hospital'
,
userLocation
:
userLocation
});
}
})
});
\ No newline at end of file
});
module
.
exports
=
router
;
\ No newline at end of file
...
...
Please
register
or
login
to post a comment