|
|
@@ -134,8 +134,8 @@ class PartController extends BaseController
|
|
|
}
|
|
|
|
|
|
$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)) {
|
|
|
util::success(['hasNoPrint' => 1]);
|
|
|
}
|