登录接口返回是否是员工

This commit is contained in:
SongZhang 2024-10-17 09:55:04 +08:00
parent 4b2a64ea72
commit fc7877fcd6
1 changed files with 1 additions and 1 deletions

View File

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