|
|
@@ -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);
|