shish %!s(int64=3) %!d(string=hai) anos
pai
achega
dabead90d6
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      app-ghs/controllers/ShopController.php

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

@@ -34,7 +34,7 @@ class ShopController extends BaseController
         $shopList = [];
         $shopList = [];
         if (isset($staff->super) && $staff->super == 1) {
         if (isset($staff->super) && $staff->super == 1) {
             $sjId = $this->sjId ?? 0;
             $sjId = $this->sjId ?? 0;
-            $shopList = ShopClass::getAllByCondition(['sjId' => $sjId, 'ptStyle' => 2], null, 'id,shopName,merchantName,sjId,mainId', 'id');
+            $shopList = ShopClass::getAllByCondition(['sjId' => $sjId, 'ptStyle' => 2], null, 'id,shopName,merchantName,sjId,mainId,ptStyle', 'id');
         }
         }
         $adminId = $this->adminId ?? 0;
         $adminId = $this->adminId ?? 0;
         $staffList = ShopAdminClass::getAllByCondition(['adminId' => $adminId], null, '*', null, true);
         $staffList = ShopAdminClass::getAllByCondition(['adminId' => $adminId], null, '*', null, true);
@@ -51,7 +51,7 @@ class ShopController extends BaseController
             }
             }
         }
         }
         if (!empty($mainIdList)) {
         if (!empty($mainIdList)) {
-            $addShopList = ShopClass::getAllByCondition(['mainId' => ['in', $mainIdList], 'ptStyle' => 2], null, 'id,shopName,merchantName,sjId,mainId', 'id');
+            $addShopList = ShopClass::getAllByCondition(['mainId' => ['in', $mainIdList], 'ptStyle' => 2], null, 'id,shopName,merchantName,sjId,mainId,ptStyle', 'id');
             if (!empty($addShopList)) {
             if (!empty($addShopList)) {
                 foreach ($addShopList as $addShop) {
                 foreach ($addShopList as $addShop) {
                     $addShopId = $addShop['id'] ?? 0;
                     $addShopId = $addShop['id'] ?? 0;