<?php
header('Content-Type: application/json; charset=utf-8');
include("../function/func.php");
$data = json_decode(file_get_contents('php://input'), true);
$orderID=$data['orderID'];
$id=getIDFromOrderID($orderID);
$data=getOrderDetail($id);
$resultCode['retCode']=1;
$resultCode['resMessage']="";
$resultCode['resData']['order']=$data;
if($data==null||$data=="null"){
    $resultCode['retCode']=0;
    $resultCode['resMessage']="無此訂單編號";
}
echo json_encode($resultCode);
?>