账号切换实现

This commit is contained in:
张松
2025-04-08 17:31:08 +08:00
parent fc51797e2d
commit 3e874211d7

View File

@@ -193,7 +193,7 @@ public class AuthorizationServiceImpl implements AuthorizationService {
throw new ApiNotPrintException("店铺信息不存在");
}
if (!shopInfo.getMainId().equals(headId)) {
if ((headId != null && !shopInfo.getMainId().equals(headId)) || !shopInfo.getMainId().equals(shopId)) {
throw new ApiNotPrintException("目标店铺非登录账号所有");
}