修改对接计算报告

main
yanzai 1 year ago
parent 641112806a
commit 9abbf0ccf5

@ -13,10 +13,12 @@ class OrderService
{
$order=DB::table('orders')->where('id',$id)->first();
if(!$order) return ['status'=>false,'msg'=>'订单不存在'];
$hospital=DB::table('hospitals')->where('id',$order->hospital_id)->first();
if(!$hospital) return ['status'=>false,'msg'=>'医院不存在'];
$wait_day=false;
if(isset($order->tj_number) and !empty($order->tj_number)){
$peis = new PEISApiController();
$wait=$peis::Get($peis::Api('报告时间计算',"2403020020"),"111111","报告时间计算");
$wait=$peis::Get($peis::Api('报告时间计算',$order->tj_number),$hospital->code,"报告时间计算");
if(isset($wait['Data']['预计所需天数'])){
$wait_day=$wait['Data']['预计所需天数'];
}

Loading…
Cancel
Save