Showing
3 changed files
with
4 additions
and
3 deletions
... | @@ -15,6 +15,7 @@ const cliConnection = async (req, res) => { | ... | @@ -15,6 +15,7 @@ const cliConnection = async (req, res) => { |
15 | // clientData | 15 | // clientData |
16 | try { | 16 | try { |
17 | clientData = req.body.data; | 17 | clientData = req.body.data; |
18 | + console.log("------------------------------------------------------------",clientData); | ||
18 | if( !clientData.text.replace( /\s/g, '' ).length ) { | 19 | if( !clientData.text.replace( /\s/g, '' ).length ) { |
19 | throw new Error( "client text empty" ); | 20 | throw new Error( "client text empty" ); |
20 | } | 21 | } | ... | ... |
... | @@ -2,8 +2,8 @@ | ... | @@ -2,8 +2,8 @@ |
2 | "devToolsPort": 19002, | 2 | "devToolsPort": 19002, |
3 | "expoServerPort": 19000, | 3 | "expoServerPort": 19000, |
4 | "packagerPort": 19001, | 4 | "packagerPort": 19001, |
5 | - "packagerPid": 24100, | 5 | + "packagerPid": 10408, |
6 | "expoServerNgrokUrl": "https://ru-c66.bluejoy.searchguide.exp.direct", | 6 | "expoServerNgrokUrl": "https://ru-c66.bluejoy.searchguide.exp.direct", |
7 | "packagerNgrokUrl": "https://packager.ru-c66.bluejoy.searchguide.exp.direct", | 7 | "packagerNgrokUrl": "https://packager.ru-c66.bluejoy.searchguide.exp.direct", |
8 | - "ngrokPid": 25536 | 8 | + "ngrokPid": 14692 |
9 | } | 9 | } | ... | ... |
... | @@ -2,7 +2,7 @@ const axios = require('axios') | ... | @@ -2,7 +2,7 @@ const axios = require('axios') |
2 | import filter from './filter'; | 2 | import filter from './filter'; |
3 | import { SERVER_URL } from 'react-native-dotenv'; | 3 | import { SERVER_URL } from 'react-native-dotenv'; |
4 | 4 | ||
5 | -export const sendSearch = async(searchText) => { | 5 | +export const sendSearch = async (searchText) => { |
6 | return new Promise((resolve,reject) => { | 6 | return new Promise((resolve,reject) => { |
7 | if(searchText=== "" || searchText.length > 30 ){ | 7 | if(searchText=== "" || searchText.length > 30 ){ |
8 | resolve({ "return_code" : -1, "error_code": "검색 단어를 확인해 주세요!" }); | 8 | resolve({ "return_code" : -1, "error_code": "검색 단어를 확인해 주세요!" }); | ... | ... |
-
Please register or login to post a comment