shish пре 4 година
родитељ
комит
df14ee2953
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      app-ghs/controllers/AuthController.php

+ 1 - 1
app-ghs/controllers/AuthController.php

@@ -417,7 +417,7 @@ class AuthController extends PublicController
             util::success(['token' => '', 'currentMiniOpenId' => $openid, 'number' => 4]);
         }
         $currentShop = ShopClass::getById($currentShopId, true);
-        if (!empty($currentShop)) {
+        if (empty($currentShop)) {
             util::success(['token' => '', 'currentMiniOpenId' => $openid, 'number' => 4]);
         }
         $mainId = $currentShop->mainId ?? 0;