【调度系统】广东民航医疗快线调度系统源代码
wzp
2024-12-05 9dc0d99742f5526321e1b5fdb0dec10e6725415e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<?php 
header("Content-Type: text/html; charset=utf-8");
$ServiceOrdID=empty($_REQUEST['ServiceOrdID'])!=false ? "" : addslashes($_REQUEST['ServiceOrdID']);
$CarIMEI="";
if(!empty($ServiceOrdID)){
    //订单内容
    $method='ServiceOrder_Detail';
    $memu="OrderList";
    $arr = array('method'=>$method,"APPID"=>$CAME_APPID,"UnixTime"=>time(),"ServiceOrdID"=>$ServiceOrdID);
    if(!empty($UserID)){
        $arr["UserID"] = $UserID;
    }
    ksort($arr);
    $i=0;
    $stringA='';
    $content='';
    foreach($arr as $k=>$v){
        $stringA=$stringA.$k.$v;
        $content.="&".$k."=".$v;
    }
    $stringSignTemp=$stringA.$CAME_APPSECRET;
    $stringSignTemp=str_replace(" ", "%20", $stringSignTemp);
    $sign=MD5($stringSignTemp);
    //echo $stringSignTemp.",Sign:".$sign."<br>";
    $content = 'Sign='.$sign.$content;
    $api_url='https://api.966120.com.cn/v1/?'.$content;
    //echo $api_url;
    //exit;
 
    $api_url=str_replace(" ", "%20", $api_url);
    $api_info=file_get_contents($api_url);
    $api_info=json_decode($api_info,true);
    $result = $api_info["result"];
    if ($result!=1) {header("Location: /"); exit;}
 
    $DispatchList = $api_info["DispatchList"];
      if(!empty($DispatchList)){
        foreach($DispatchList as $Dispatch){
            if($Dispatch["DispatchState"]=='已出发' or $Dispatch["DispatchState"]=='转运中'){
                $CarLicense= $Dispatch["CarID"];
            }
     }}
}else{
    header("Location: /login.php"); exit;
        
}
if(empty($CarIMEI)){header("Location: /login.php"); exit;}
?>
<html><head></head><body><iframe id="iframe" src="http://183.6.154.122:8088/808gps/open/player/video.html?lang=zh&vehiIdno=<?php echo $CarLicense;?>&account=966120&password=cms966120&close=10" width="100%" height="80%" marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0" scrolling="no"></iframe>
</body></html>