刘桂岩 3 anni fa
parent
commit
d807cd59b5
1 ha cambiato i file con 3 aggiunte e 1 eliminazioni
  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'] : '';