|
|
|
|
@ -63,29 +63,31 @@ class Yz{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$resdata = curl_exec($ch);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$result="";
|
|
|
|
|
try {
|
|
|
|
|
if(curl_errno($ch)) {
|
|
|
|
|
$result=curl_error($ch);
|
|
|
|
|
// print curl_error($ch);
|
|
|
|
|
} else {
|
|
|
|
|
curl_close($ch);
|
|
|
|
|
|
|
|
|
|
$res = explode('<soap:Body>', $resdata)[1];
|
|
|
|
|
$res = explode('</soap:Body>', $res)[0];
|
|
|
|
|
|
|
|
|
|
$xmlObject = simplexml_load_string($res);
|
|
|
|
|
$jsonData = json_encode($xmlObject);
|
|
|
|
|
$result = json_decode($jsonData, true);
|
|
|
|
|
if(!$resdata==""){
|
|
|
|
|
$result="";
|
|
|
|
|
try {
|
|
|
|
|
if(curl_errno($ch)) {
|
|
|
|
|
$result=curl_error($ch);
|
|
|
|
|
// print curl_error($ch);
|
|
|
|
|
} else {
|
|
|
|
|
curl_close($ch);
|
|
|
|
|
|
|
|
|
|
$res = explode('<soap:Body>', $resdata)[1];
|
|
|
|
|
$res = explode('</soap:Body>', $res)[0];
|
|
|
|
|
|
|
|
|
|
$xmlObject = simplexml_load_string($res);
|
|
|
|
|
$jsonData = json_encode($xmlObject);
|
|
|
|
|
$result = json_decode($jsonData, true);
|
|
|
|
|
}
|
|
|
|
|
}catch (Exception $e) {
|
|
|
|
|
$result = $e->getMessage();
|
|
|
|
|
}
|
|
|
|
|
}catch (Exception $e) {
|
|
|
|
|
$result = $e->getMessage();
|
|
|
|
|
}else{
|
|
|
|
|
$result=$resdata;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
LogService::CheckTableName();
|
|
|
|
|
date_default_timezone_set('PRC');
|
|
|
|
|
$table_name='zz_request_log_' . date('ym');
|
|
|
|
|
|