|
@@ -171,23 +171,23 @@ class Dcquery extends Controller
|
|
|
$info['studyInstanceUid'] = $study_info['studyuid'];
|
|
|
$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();
|
|
|
+ $institution = DB::table('institution')->where('id',$study_info['institution_id'])->field('name,is_yyk,createdAt')->find();
|
|
|
$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
|
|
|
- // ];
|
|
|
+// 创建时间大于三个月前的时间戳 已过三个月
|
|
|
+ $return['alert'] = [
|
|
|
+ // 消息弹窗内容
|
|
|
+ "msg" => "您所在机构的免费试用期限已到,请尽快联系您的平台运营方,以免影响您的后续使用",
|
|
|
+ // 消息弹窗标题
|
|
|
+ "title" => "",
|
|
|
+ // 消息弹窗按钮
|
|
|
+ "button" => "我知道了",
|
|
|
+ // 消息弹窗是否阻塞
|
|
|
+ "return" => false
|
|
|
+ ];
|
|
|
}
|
|
|
}
|
|
|
$info['patientName'] = $patient_info['name'];
|