<?php
|
header("Content-Type: text/html; charset=utf-8");
|
$CarLicense=empty($_REQUEST['CarLicense'])!=false ? "" : addslashes($_REQUEST['CarLicense']);
|
$Vidno_ID=empty($_REQUEST['VidnoID'])!=false ? "" : addslashes($_REQUEST['VidnoID']);
|
if(!empty($Vidno_ID)){
|
//用户登录
|
$api_url='http://v1.966120.com.cn:8088/StandardApiAction_login.action?account=966120&password=new966120';
|
echo $api_url;//exit;
|
$api_info=file_get_contents($api_url);
|
$api_info=json_decode($api_info,true);
|
$result = $api_info["result"];
|
if ($result!=0) {header("Location: /"); exit;}
|
$JSESSIONID = $api_info["JSESSIONID"];
|
//$Vidno_ID="446707110";
|
header("Location: http://v1.966120.com.cn:8088/808gps/open/map/vehicleMap.html?jsession=$JSESSIONID&devIdno=$Vidno_ID"); exit;
|
}else{
|
header("Location: /login.php"); exit;
|
|
}
|
$channel=1;
|
?>
|