Browse Source

fix bug: 多注释掉了代码

shizhongqi 4 năm trước cách đây
mục cha
commit
41ddd5e323
1 tập tin đã thay đổi với 3 bổ sung3 xóa
  1. 3 3
      console/controllers/CustomController.php

+ 3 - 3
console/controllers/CustomController.php

@@ -228,13 +228,13 @@ class CustomController extends Controller
             //前端用于判断是否注册
             $admin['currentShopId'] = $newShopId;
             $adminId = $admin['id'];
-            /*$shopAdmin = ShopAdminService::getByCondition(['adminId' => $adminId, 'mainId' => $newMainId], true);
+            $shopAdmin = ShopAdminService::getByCondition(['adminId' => $adminId, 'mainId' => $newMainId], true);
             if (empty($shopAdmin)) {
                 Yii::info('没有找到管理员');
                 continue;
             }
-            $shopAdmin->lastLogin = date("Y-m-d H:i:s");
-            $shopAdmin->save();*/
+            //$shopAdmin->lastLogin = date("Y-m-d H:i:s");
+            //$shopAdmin->save();
             $shopAdminId = $shopAdmin->id ?? 0;
             //是否有切换门店的权限
             $switchShop = \biz\shop\classes\ShopAdminClass::hasSwitchShopRight($shopAdmin);