shish 3 ani în urmă
părinte
comite
5c5cec42df
1 a modificat fișierele cu 2 adăugiri și 3 ștergeri
  1. 2 3
      app-ghs/controllers/MerchantController.php

+ 2 - 3
app-ghs/controllers/MerchantController.php

@@ -32,10 +32,9 @@ class MerchantController extends BaseController
         if (empty($merchant)) {
         if (empty($merchant)) {
             util::success([]);
             util::success([]);
         }
         }
-        $default = $this->shop->default ?? 0;
         $name = $merchant['name'] ?? '';
         $name = $merchant['name'] ?? '';
-        if ($default != 1) {
-            $shopName = $this->shop->shopName ?? '';
+        $shopName = $this->shop->shopName ?? '';
+        if ($shopName != '首店') {
             $name .= ' ' . $shopName;
             $name .= ' ' . $shopName;
         }
         }
         $merchant['name'] = $name;
         $merchant['name'] = $name;