刘桂岩 před 3 roky
rodič
revize
f495318f96
1 změnil soubory, kde provedl 1 přidání a 3 odebrání
  1. 1 3
      application/inter/controller/Writereport.php

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

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