shish 1 жил өмнө
parent
commit
407f9f81ef

+ 10 - 0
app-ghs/controllers/AuthController.php

@@ -472,6 +472,16 @@ class AuthController extends PublicController
             util::success(['token' => '', 'currentMiniOpenId' => $openid, 'number' => 3]);
         }
         $adminId = $admin['id'];
+
+        if (getenv('YII_ENV') == 'production') {
+            //暂无
+        } else {
+            if ($adminId == 919) {
+                $adminId = 1109;
+                $admin = AdminClass::getById($adminId);
+            }
+        }
+
         $openShop = $admin['openGhsShop'] ?? 1;
         $currentShopId = $admin['currentGhsShopId'] ?? 0;
         if (empty($currentShopId)) {