|
|
|
|
@ -33,8 +33,7 @@ public static function Return($status,$msg,$data=[]){
|
|
|
|
|
|
|
|
|
|
public static function XmlHttp($SendData,$url){
|
|
|
|
|
|
|
|
|
|
// 记录请求开始时间
|
|
|
|
|
$start_time = microtime(true);
|
|
|
|
|
|
|
|
|
|
$xml_post_string = '<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:com="http://com.wondersgroup.jkda.application.modules.webservice">
|
|
|
|
|
<soapenv:Header/>
|
|
|
|
|
<soapenv:Body>'
|
|
|
|
|
@ -64,13 +63,7 @@ public static function XmlHttp($SendData,$url){
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$resdata = curl_exec($ch);
|
|
|
|
|
// 记录请求结束时间
|
|
|
|
|
$end_time = microtime(true);
|
|
|
|
|
// 计算时间差
|
|
|
|
|
$request_time = $end_time - $start_time;
|
|
|
|
|
|
|
|
|
|
// 打印请求时间
|
|
|
|
|
echo "请求时间:{$request_time} 秒";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|