app::$accountID, "serviceName" => 'SyncOrder', "digitalSign" => $zzUtils->sign_md5(app::$accountID, app::$accountPassword, $request_time), "reqTime" => $request_time ); $result_array = $zzUtils->addXml($base_array, $array_header); $array_info['header'] = $result_array; //组装body $array_info['body']['order'] = array(); $base_body = $array_info['body']['order']; $arr_body = array ( "operateType" => $operateType, "serialId" => $serialId, "comfirmNumber" => $confirmNumber, "sceneryId" => $sceneryId, "sceneryName" => $sceneryName, "ticketTypeId" => $ticketTypeId, "ticketTypeName" => $ticketTypeName, "retailPrice" => $retailPrice, "webPrice" => $webPrice, "costPrice" => $costPrice, "ticketCount" => $ticketCount, "totalAmount" => $totalAmount, "realPayAmount" => $realPayAmount, "payType" => $payType, "playDate" => $playDate, "expiryDate" => $expiryDate, "orderStatus" => $orderStatus, "travelerName" => $travelerName, "travelerMobile" => $travelerMobile, "orderDate" => $orderDate, "identityCard" => $identityCard, "captcha" => $captcha, "isParcelTicket" => $isParcelTicket ); writeLog("tictctInfo::".json_encode($arr_body)); $res_body = $zzUtils->addXml($base_body, $arr_body); $array_info['body']['order'] = $res_body; $arr_result['request'] = $array_info; $res_xml = $zzUtils->array_to_xml($arr_result); $res = $zzUtils->xml_post_request(app::$url, $res_xml); //发送请求 $arr_res = $zzUtils->xml_to_array($res); $arrOrderInfo = array(); if ($arr_res['header']['rspCode'] == '0000') { foreach ($arr_res['body'] as $orderInfo) { $arrOrderInfo = $orderInfo; } return $arrOrderInfo; } else { return false; } } /*$SyncOrder = SyncOrder('add',"17999", '',1, '', 336, '', 99, 99, 99, 1, 198, 198, 'onlinepayment', '2016-08-22 00:00:00', '', 'P', '魏意锡', '18663582623','2016-08-20 00:00:00', '371521199011034631',"",""); var_dump($SyncOrder);*/