nutzWk微服务里 实体类里如何获得用户uid
public String uid() {
String uid = getOpBy();
if (Strings.isNotBlank(uid)) {
return uid;
}
try {
HttpServletRequest request = Mvcs.getReq();
if (request != null) {
return Strings.sNull(request.getSession(true).getAttribute("uid"));
}
} catch (Exception e) {
}
return "";
}
request 是空的