|
@@ -100,6 +100,7 @@ class Index extends BaseController
|
|
if(isset($info['Datas']['Report']['ClinicID']))
|
|
if(isset($info['Datas']['Report']['ClinicID']))
|
|
{
|
|
{
|
|
$pdf = $info['Datas']['Report']['PdfReportUrl'];
|
|
$pdf = $info['Datas']['Report']['PdfReportUrl'];
|
|
|
|
+ var_dump($pdf);
|
|
$name = $info['Datas']['Report']['ClinicID'];
|
|
$name = $info['Datas']['Report']['ClinicID'];
|
|
$this->downImgRar($pdf,$name,'pdf',$info['Datas']['Report']['ClinicID']);
|
|
$this->downImgRar($pdf,$name,'pdf',$info['Datas']['Report']['ClinicID']);
|
|
}else{
|
|
}else{
|
|
@@ -135,6 +136,7 @@ class Index extends BaseController
|
|
$file_path = '/files/';
|
|
$file_path = '/files/';
|
|
break;
|
|
break;
|
|
}
|
|
}
|
|
|
|
+ var_dump(1);
|
|
$ch = curl_init($url);
|
|
$ch = curl_init($url);
|
|
curl_setopt($ch, CURLOPT_HEADER, 0);
|
|
curl_setopt($ch, CURLOPT_HEADER, 0);
|
|
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
|
|
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
|
|
@@ -143,11 +145,14 @@ class Index extends BaseController
|
|
curl_close ($ch);
|
|
curl_close ($ch);
|
|
// 使用中文文件名需要转码
|
|
// 使用中文文件名需要转码
|
|
file_put_contents($_SERVER['DOCUMENT_ROOT'].$file_path.$rename.'.'.$ext,$rawdata);
|
|
file_put_contents($_SERVER['DOCUMENT_ROOT'].$file_path.$rename.'.'.$ext,$rawdata);
|
|
|
|
+ var_dump(2);
|
|
// 返回路径
|
|
// 返回路径
|
|
$path = $_SERVER['DOCUMENT_ROOT'].$file_path.$rename.".".$ext;
|
|
$path = $_SERVER['DOCUMENT_ROOT'].$file_path.$rename.".".$ext;
|
|
$ins = ['type'=>$ext,'url'=>$path,'barcode'=>$barCode];
|
|
$ins = ['type'=>$ext,'url'=>$path,'barcode'=>$barCode];
|
|
|
|
+ var_dump(3);
|
|
Db::table('annex')->insert($ins);
|
|
Db::table('annex')->insert($ins);
|
|
$patientId = Db::table('dianapiinfo')->where('Barcode',$barCode)->value('patientId');
|
|
$patientId = Db::table('dianapiinfo')->where('Barcode',$barCode)->value('patientId');
|
|
|
|
+ var_dump(4);
|
|
Db::table('phy_lis_reports')->where('patientId',$patientId)->update(['is_report_url'=>1]);
|
|
Db::table('phy_lis_reports')->where('patientId',$patientId)->update(['is_report_url'=>1]);
|
|
return 'success';
|
|
return 'success';
|
|
}
|
|
}
|