登录接口返回是否是员工

This commit is contained in:
SongZhang 2024-10-17 09:46:35 +08:00
parent e8f0147ada
commit 4b2a64ea72
1 changed files with 1 additions and 0 deletions

View File

@ -140,6 +140,7 @@ public class LoginService {
accountMap.put("shopName", shopInfo.getShopName());
}
accountMap.put("uuid", uuid);
accountMap.put("isStaff", loginReq.getLoginName().contains(account.getShopId() + "@"));
redisUtil.saveMessage("CART:UUID:" + account.getShopId().concat(account.getId().toString()), uuid);
return Result.success(CodeEnum.SUCCESS, accountMap);