main
yanzai 1 year ago
parent 8903efd2dc
commit b60e7ea0c1

Binary file not shown.

@ -77,7 +77,7 @@ class EntrustController extends Controller
public function CreateRecordXml(Request $request)
{
$xmlString = $request->getContent(); // 获取请求的原始内容XML
// try {
$res = explode('<soap:Body>', $xmlString)[1];
$res = explode('</soap:Body>', $res)[0];
$xmlData = simplexml_load_string($res);
@ -88,6 +88,10 @@ class EntrustController extends Controller
$service = new ShenQingDanService();
return $service->Save($result,$jsonData);
}
// }catch (\Exception $e){
// return \Yz::XMLReturn('SYS001', '269624', -1, '处理失败,接收数据不符合预期结构 '.$e->getMessage());
// }
}

@ -25,6 +25,7 @@ class XmlLog
"接收申请单"=>'/api/v1/T/CreateEntrustRecordXml',
];
Log::info($request->getContent());
$insertid=0;
$data=[
'mark'=>array_search($request->getPathInfo(), $routers),

@ -43,7 +43,7 @@ class Yz{
],
];
// 将数据转换为 XML
$xml = simplexml_load_string('<?xml version="1.0" encoding="UTF-8"?>' . "\n<root/>");
$xml = simplexml_load_string('<?xml version="1.0" encoding="UTF-8"?>' . "<root/>");
array_walk_recursive($data, function($value, $key) use ($xml) {
$child = $xml->addChild($key, $value);
});

@ -53,14 +53,15 @@ class ShenQingDanService
'reg_num', 'user_name', 'user_sex', 'entrust', 'is_pay',
'reservation_department', 'entrust_date', 'entrust_time',
'user_brithday', 'docotr', 'patient_type', 'user_phone',
'implement_department', 'entrust_id', 'episodeid',
'RISRExamID', 'RISRAcceptDeptCode'
'implement_department', 'entrust_id', 'episodeid', 'RISRAcceptDeptCode'
];
// 判断是否为空
foreach ($requiredFields as $field) {
if (!isset($params[$field]) || $params[$field] === null) {
return \Yz::echoError1('参数' . $field . '不能为空');
// return \Yz::echoError1('参数' . $field . '不能为空');
DB::rollBack();
return \Yz::XMLReturn($Header['SourceSystem'], $Header['MessageID'], -1, '参数' . $field . '不能为空');
}
}

@ -1,6 +1,6 @@
ENV = 'production'
VITE_APP_API_65 = 'http://10.50.120.166/YiJiYuYue/Laravel/public/api/'
VITE_APP_FILE_34343 = 'http://10.50.120.166/YiJiYuYue/Laravel/public/'
VITE_APP_API = 'http://10.50.120.166/YiJiYuYue/Laravel/public/api/'
VITE_APP_FILE = 'http://10.50.120.166/YiJiYuYue/Laravel/public/'
VITE_APP_API = 'https://yiji.yuluo.online/Laravel/public/api/'
VITE_APP_FILE = 'https://yiji.yuluo.online/Laravel/public/'
VITE_APP_API_6666 = 'https://yiji.yuluo.online/Laravel/public/api/'
VITE_APP_FILE_555 = 'https://yiji.yuluo.online/Laravel/public/'

Binary file not shown.
Loading…
Cancel
Save