shish 5 жил өмнө
parent
commit
f77f7132ed

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

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