diff --git a/kernel/model/import.go b/kernel/model/import.go index 52d58c981..2154d2c91 100644 --- a/kernel/model/import.go +++ b/kernel/model/import.go @@ -584,6 +584,7 @@ func ImportFromLocalPath(boxID, localPath string, toPath string) (err error) { tree.Box = boxID tree.Path = targetPath tree.HPath = path.Join(baseHPath, title) + tree.Root.Spec = "1" luteEngine.NestedInlines2FlattedSpans(tree) docDirLocalPath := filepath.Dir(filepath.Join(boxLocalPath, targetPath)) diff --git a/kernel/model/liandi.go b/kernel/model/liandi.go index 3d385cd25..6ec740039 100644 --- a/kernel/model/liandi.go +++ b/kernel/model/liandi.go @@ -180,7 +180,7 @@ func refreshSubscriptionExpirationRemind() { remains := int((expired - time.Now().UnixMilli()) / 1000 / 60 / 60 / 24) expireDay := 15 // 付费订阅提前 15 天提醒 if 2 == Conf.User.UserSiYuanSubscriptionPlan { - expireDay = 2 // 试用订阅提前 2 天提醒 + expireDay = 3 // 试用订阅提前 3 天提醒 } if 0 < remains && expireDay > remains {