Browse Source

切换门店

shish 5 years ago
parent
commit
f77f7132ed
1 changed files with 1 additions and 1 deletions
  1. 1 1
      biz/shop/classes/ShopAdminClass.php

+ 1 - 1
biz/shop/classes/ShopAdminClass.php

@@ -113,7 +113,7 @@ class ShopAdminClass extends BaseClass
         $roleId = $originShopAdmin['roleId'];
         $roleId = $originShopAdmin['roleId'];
         $sjId = $originShopAdmin['merchantId'];
         $sjId = $originShopAdmin['merchantId'];
         $super = $originShopAdmin['super'] ?? 0;
         $super = $originShopAdmin['super'] ?? 0;
-        $has = self::getCount(['shopId' => $toggleShopId, 'adminId' => $adminId, 'delStatus' => 0]);
+        $has = self::getByCondition(['shopId' => $toggleShopId, 'adminId' => $adminId, 'delStatus' => 0]);
         if ($has) {
         if ($has) {
             return $has;
             return $has;
         }
         }