刘桂岩 3 лет назад
Родитель
Сommit
d807cd59b5
1 измененных файлов с 3 добавлено и 1 удалено
  1. 3 1
      application/inter/controller/Writereport.php

+ 3 - 1
application/inter/controller/Writereport.php

@@ -114,7 +114,9 @@ class Writereport extends Base
             $info['report_result'] = $report['report_result'] ?? null;
             $info['report_id'] = $report['id'] ?? null;
             $info['qr_code'] = $report['qr_code'] ?? null;
-            $cache_key = $doctor['id'] ?? null.'_'.$report['id'] ?? null;
+            var_dump($doctor['id']);
+            var_dump($report['id']);
+            $cache_key = $doctor['id'].'_'.$report['id'] ?? $r['id'];
             if(Cache::get($cache_key)){
                 $cache = Cache::get($cache_key);
                 $info['description'] = isset($cache['description']) ? $cache['description'] : '';