|
@@ -172,23 +172,24 @@ class Dcquery extends Controller
|
|
|
$patient_info = DB::table('patient_infos')->where('id',$study_info['patient_id'])->field('birthday,institution_id,temp_patient_id,name,age,sex')->find();
|
|
|
$exams = DB::table('exams')->where('patient_id',$study_info['patient_id'])->field('exam_datetime, exam_class')->find();
|
|
|
$institution = DB::table('institution')->where('id',$study_info['institution_id'])->field('name,is_yyk')->find();
|
|
|
- // if($institution['is_yyk'] == 1 && $flag == 'pc')
|
|
|
- // {
|
|
|
- // if(strtotime("-0 year -3 month -0 day") > strtotime($institution['createdAt']))
|
|
|
- // {
|
|
|
- // // 创建时间大于三个月前的时间戳 已过三个月
|
|
|
- // $return['alert'] = [
|
|
|
- // // 消息弹窗内容
|
|
|
- // "msg" => "您所在机构的免费试用期限已到,请尽快联系您的平台运营方,以免影响您的后续使用",
|
|
|
- // // 消息弹窗标题
|
|
|
- // "title" => "",
|
|
|
- // // 消息弹窗按钮
|
|
|
- // "button" => "我知道了",
|
|
|
- // // 消息弹窗是否阻塞
|
|
|
- // "return" => false
|
|
|
- // ];
|
|
|
- // }
|
|
|
- // }
|
|
|
+ $return = array();
|
|
|
+ if($institution['is_yyk'] == 1 && $flag == 'pc')
|
|
|
+ {
|
|
|
+ if(strtotime("-0 year -3 month -0 day") > strtotime($institution['createdAt']))
|
|
|
+ {
|
|
|
+ // 创建时间大于三个月前的时间戳 已过三个月
|
|
|
+ $return['alert'] = [
|
|
|
+ // 消息弹窗内容
|
|
|
+ "msg" => "您所在机构的免费试用期限已到,请尽快联系您的平台运营方,以免影响您的后续使用",
|
|
|
+ // 消息弹窗标题
|
|
|
+ "title" => "",
|
|
|
+ // 消息弹窗按钮
|
|
|
+ "button" => "我知道了",
|
|
|
+ // 消息弹窗是否阻塞
|
|
|
+ "return" => false
|
|
|
+ ];
|
|
|
+ }
|
|
|
+ }
|
|
|
$info['patientName'] = $patient_info['name'];
|
|
|
// 根据series_num排序
|
|
|
$series_list = DB::table('series')->where('study_id',$study_info['id'])->where('modality','not in','PR,SR')->field('id,series_num,seriesuid,description,modality')->order('series_num asc')->select();
|
|
@@ -214,7 +215,7 @@ class Dcquery extends Controller
|
|
|
]);
|
|
|
}
|
|
|
$info['seriesList'] = $series;
|
|
|
- $return = array();
|
|
|
+
|
|
|
$return['transactionId'] = $study_info['studyuid'];
|
|
|
if(!empty($patient_info['age'])){
|
|
|
$info['patientAge'] = $patient_info['age'];
|