mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-14 11:14:21 +01:00
This commit is contained in:
parent
612dff8b8c
commit
b76b3b3e0f
8 changed files with 28 additions and 22 deletions
|
|
@ -1,4 +1,5 @@
|
|||
import {showMessage} from "../dialog/message";
|
||||
import {getCloudURL} from "../config/util/about";
|
||||
|
||||
export const needSubscribe = (tip = window.siyuan.languages._kernel[29]) => {
|
||||
if (window.siyuan.user && (window.siyuan.user.userSiYuanProExpireTime === -1 || window.siyuan.user.userSiYuanProExpireTime > 0)) {
|
||||
|
|
@ -8,6 +9,9 @@ export const needSubscribe = (tip = window.siyuan.languages._kernel[29]) => {
|
|||
if (tip === window.siyuan.languages._kernel[29] && window.siyuan.config.system.container === "ios") {
|
||||
showMessage(window.siyuan.languages._kernel[122]);
|
||||
} else {
|
||||
if (tip === window.siyuan.languages._kernel[29]) {
|
||||
tip = window.siyuan.languages._kernel[29].replace("${url}", getCloudURL("subscribe/siyuan"));
|
||||
}
|
||||
showMessage(tip);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue