geodata Jsonprint
This commit is contained in:
parent
8f96fe9c9d
commit
baff2acc30
|
|
@ -1063,7 +1063,7 @@ function getAddress(latitude,longitude,locmode,callback){
|
|||
{
|
||||
if (res)
|
||||
{
|
||||
console.log('GeoData: '+res);
|
||||
console.log('GeoData: '+JSON.Stringify(res));
|
||||
//return address;
|
||||
callback(null,res);
|
||||
}
|
||||
|
|
@ -4295,10 +4295,11 @@ router.post('/access', function(req,res){
|
|||
else
|
||||
{
|
||||
console.log(device)
|
||||
if (typeof device === 'undefined' || device === null)
|
||||
if (typeof device === 'undefined' || !device )
|
||||
{
|
||||
response.status=200;
|
||||
response.data='INVALID DEVICE';
|
||||
//res.status(200).send('INVALID DEVICE!');
|
||||
res.send(response);
|
||||
}
|
||||
else
|
||||
|
|
|
|||
Loading…
Reference in New Issue