登录接口返回是否是员工
This commit is contained in:
@@ -140,6 +140,7 @@ public class LoginService {
|
|||||||
accountMap.put("shopName", shopInfo.getShopName());
|
accountMap.put("shopName", shopInfo.getShopName());
|
||||||
}
|
}
|
||||||
accountMap.put("uuid", uuid);
|
accountMap.put("uuid", uuid);
|
||||||
|
accountMap.put("isStaff", loginReq.getLoginName().contains(account.getShopId() + "@"));
|
||||||
redisUtil.saveMessage("CART:UUID:" + account.getShopId().concat(account.getId().toString()), uuid);
|
redisUtil.saveMessage("CART:UUID:" + account.getShopId().concat(account.getId().toString()), uuid);
|
||||||
|
|
||||||
return Result.success(CodeEnum.SUCCESS, accountMap);
|
return Result.success(CodeEnum.SUCCESS, accountMap);
|
||||||
|
|||||||
Reference in New Issue
Block a user