shish hai 4 meses
pai
achega
32baca72f2
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      app-ghs/controllers/PartController.php

+ 2 - 2
app-ghs/controllers/PartController.php

@@ -134,8 +134,8 @@ class PartController extends BaseController
         }
         }
 
 
         $ext = $this->shopExt;
         $ext = $this->shopExt;
-        $printSn = is_array($ext) ? ($ext['printSn'] ?? '') : ($ext->printSn ?? '');
-        $printKey = is_array($ext) ? ($ext['printKey'] ?? '') : ($ext->printKey ?? '');
+        $printSn = $ext->printSn ?? '';
+        $printKey = $ext->printKey ?? '';
         if (empty($printSn) || empty($printKey)) {
         if (empty($printSn) || empty($printKey)) {
             util::success(['hasNoPrint' => 1]);
             util::success(['hasNoPrint' => 1]);
         }
         }