Commit 2016d082 by fengshuonan

修复登陆日志记录错误

parent 0440265c
......@@ -15,6 +15,14 @@ public class GunsMpFieldHandler extends CustomMetaObjectHandler {
@Override
protected Object getUserUniqueId() {
try {
return ShiroKit.getUser().getId();
} catch (Exception e) {
//如果获取不到当前用户就存空id
return "";
}
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment