Skip to content

Commit

Permalink
be
Browse files Browse the repository at this point in the history
  • Loading branch information
getrebuild committed Feb 13, 2025
1 parent 4853a4d commit 0e67652
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

package com.rebuild.core.service.dashboard.charts;

import cn.devezhao.commons.ReflectUtils;
import cn.devezhao.persist4j.Entity;
import cn.devezhao.persist4j.engine.ID;
import com.alibaba.fastjson.JSONObject;
Expand Down Expand Up @@ -93,7 +94,8 @@ public static ChartData create(JSONObject config, ID user) throws ChartsExceptio
} else {
for (BuiltinChart ch : getBuiltinCharts()) {
if (ch.getChartType().equalsIgnoreCase(type)) {
return (ChartData) ((ChartData) ch).setUser(user);
ChartData c = (ChartData) ReflectUtils.newObject(ch.getClass().getName());
return (ChartData) c.setUser(user);
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/web/signup/login.html
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@
<div class="splash-footer">
<div class="copyright link">
&copy;
<th:block th:utext="${commercial < 20 ? bundle.L('[REBUILD](https://getrebuild.com/) 技术支持') : appName}" />
<th:block th:utext="${commercial > 10 ? appName : bundle.L('[REBUILD](https://getrebuild.com/) 技术支持')}" />
</div>
</div>
</div>
Expand Down

0 comments on commit 0e67652

Please sign in to comment.