Toggle navigation
Toggle navigation
This project
Loading...
Sign in
김서영
/
searchGuide
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
bluejoyq
2019-12-05 19:14:31 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
b3a9b104bb040331d1abd1e943637f159afd4324
b3a9b104
1 parent
024bbea0
fixing error
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
3 deletions
api/cliConnection.js
searchGuide/.expo/packager-info.json
searchGuide/lib/api.js
api/cliConnection.js
View file @
b3a9b10
...
...
@@ -15,6 +15,7 @@ const cliConnection = async (req, res) => {
// clientData
try
{
clientData
=
req
.
body
.
data
;
console
.
log
(
"------------------------------------------------------------"
,
clientData
);
if
(
!
clientData
.
text
.
replace
(
/
\s
/g
,
''
).
length
)
{
throw
new
Error
(
"client text empty"
);
}
...
...
searchGuide/.expo/packager-info.json
View file @
b3a9b10
...
...
@@ -2,8 +2,8 @@
"devToolsPort"
:
19002
,
"expoServerPort"
:
19000
,
"packagerPort"
:
19001
,
"packagerPid"
:
24100
,
"packagerPid"
:
10408
,
"expoServerNgrokUrl"
:
"https://ru-c66.bluejoy.searchguide.exp.direct"
,
"packagerNgrokUrl"
:
"https://packager.ru-c66.bluejoy.searchguide.exp.direct"
,
"ngrokPid"
:
25536
"ngrokPid"
:
14692
}
...
...
searchGuide/lib/api.js
View file @
b3a9b10
...
...
@@ -2,7 +2,7 @@ const axios = require('axios')
import
filter
from
'./filter'
;
import
{
SERVER_URL
}
from
'react-native-dotenv'
;
export
const
sendSearch
=
async
(
searchText
)
=>
{
export
const
sendSearch
=
async
(
searchText
)
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
if
(
searchText
===
""
||
searchText
.
length
>
30
){
resolve
({
"return_code"
:
-
1
,
"error_code"
:
"검색 단어를 확인해 주세요!"
});
...
...
Please
register
or
login
to post a comment