Commit 9c7597fb authored by 刘可心's avatar 刘可心

保存设置的首页时添加判断

parent eafa619a
......@@ -142,7 +142,8 @@ public class HelperService {
Record userHome = new Record();
userHome.set("user_id", userId);
userHome.set("home_url", homeUrl);
userHome.set("system", Db.findById("AS_SYSTEM", "url", origin));
Record findSystem = Db.findById("AS_SYSTEM", "url", origin);
userHome.set("system", findSystem==null?"archser":findSystem.getStr("name"));
//根据用户ID 判断是否设置过首页
Record findUserHome = Db.findById("AS_USER_HOME", "user_id",userId);
if(null == findUserHome) {
......
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