|
@@ -14,6 +14,7 @@ use think\Request;
|
|
|
use think\Db;
|
|
|
use think\Cache;
|
|
|
use think\exception\HttpResponseException;
|
|
|
+use think\Log;
|
|
|
|
|
|
class Dcquery extends Controller
|
|
|
{
|
|
@@ -132,7 +133,11 @@ class Dcquery extends Controller
|
|
|
$acc_num = $_REQUEST['acc_num']?? false;
|
|
|
$study_info = false;
|
|
|
if($study_id && strlen($study_id) == '16') {
|
|
|
+ Log::record('study_info');
|
|
|
+ Log::record($study_id);
|
|
|
$study_info = DB::table('studies')->where('id',$study_id)->field('id,studyuid,studyid,patient_id')->find();
|
|
|
+
|
|
|
+ Log::record($study_info);
|
|
|
} else if($study_uid) {
|
|
|
$study_info = DB::table('studies')->where('studyuid', $study_uid)->field('id,studyuid,studyid,patient_id')->find();
|
|
|
} else if($acc_num) {
|