shish 5 роки тому
батько
коміт
a90761719e
1 змінених файлів з 6 додано та 2 видалено
  1. 6 2
      app-ghs/controllers/ShopExtController.php

+ 6 - 2
app-ghs/controllers/ShopExtController.php

@@ -22,9 +22,13 @@ class ShopExtController extends BaseController
         $printKey = $get['printKey'] ?? '';
         $print = new printUtil($printSn);
         $shop = $this->shop;
-        $shopName = $shop['shopName'] ?? '';
+        $default = $shop->default ?? 0;
+        $shopName = $shop->shopName ?? '';
+        $sj = $this->sj;
+        $sjName = $sj->name ?? '';
+        $name = $default == 1 ? $sjName : $sjName . ' ' . $shopName;
         if (!empty($printSn) && !empty($printKey)) {
-            $return = $print->addPrint($printKey, $shopName);
+            $return = $print->addPrint($printKey, $name);
             if ($return) {
                 $ext->printSn = $printSn;
                 $ext->printKey = $printKey;