Commit ea51d1bc by fengshuonan

更新metadata填充器

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