Commit ea51d1bc by fengshuonan

更新metadata填充器

parent 3c76adc6
...@@ -25,15 +25,13 @@ public class MpPluginsConfig { ...@@ -25,15 +25,13 @@ public class MpPluginsConfig {
return new CustomMetaObjectHandler() { return new CustomMetaObjectHandler() {
@Override @Override
protected Object getUserUniqueId() { protected Long getUserUniqueId() {
try { try {
return ShiroKit.getUserNotNull().getId();
return ShiroKit.getUser().getId();
} catch (Exception e) { } catch (Exception e) {
//如果获取不到当前用户就存空id //如果获取不到当前用户就存空id
return ""; return -100L;
} }
} }
}; };
......
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