setAccount(MYSQL_HOST, MYSQL_USER, MYSQL_PASSWORD, MYSQL_DB); $objDisney = new DbDisney($objDbh); $order_common_info = $objDisney->getOrderInfoFromSN($_GET["orderno"]); if( $order_common_info == false && isset($_GET["pt"]) && $_GET["pt"] == 1 ) { $_GET["orderno"] = $_COOKIE["orderno"]; $order_common_info = $objDisney->getOrderInfoFromSN($_GET["orderno"]); } $good_info = $objDisney->getGoodInfoFromId($order_common_info["prod_id"]); $base_org_info = $objDisney->getBaseOrgInfoFromCode( $_COOKIE["companycode"] ); $base_org_name = false == $base_org_info ? "酒店" : $base_org_info["org_name"]; $org_id = $base_org_info["org_id"]; if( $good_info["good_type"] == 1 ) { $good_info["good_name"] = $order_common_info["prod_id"] == 15 ? $good_info["good_name"]."(回{$base_org_name})" : $base_org_name.$good_info["good_name"]; } else if( $good_info["good_type"] == 2 ) { $good_info["good_name"] = $order_common_info["prod_id"] == 3 ? "上海迪士尼乐园一日票" : "上海迪士尼乐园两日票"; }; $order_good_array = $objDisney->getOrderGoodsArray( $order_common_info["id"] ); ?>