shish 3 年之前
父節點
當前提交
5c5cec42df
共有 1 個文件被更改,包括 2 次插入3 次删除
  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)) {
             util::success([]);
         }
-        $default = $this->shop->default ?? 0;
         $name = $merchant['name'] ?? '';
-        if ($default != 1) {
-            $shopName = $this->shop->shopName ?? '';
+        $shopName = $this->shop->shopName ?? '';
+        if ($shopName != '首店') {
             $name .= ' ' . $shopName;
         }
         $merchant['name'] = $name;