mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-14 11:14:21 +01:00
This commit is contained in:
parent
4f812bcf0c
commit
40945fc221
13 changed files with 50 additions and 21 deletions
|
|
@ -1,6 +1,16 @@
|
|||
import {showMessage} from "../dialog/message";
|
||||
import {getCloudURL} from "../config/util/about";
|
||||
|
||||
export const needLogin = (tip = window.siyuan.languages.needLogin) => {
|
||||
if (window.siyuan.user) {
|
||||
return false;
|
||||
}
|
||||
if (tip) {
|
||||
showMessage(tip);
|
||||
}
|
||||
return true;
|
||||
};
|
||||
|
||||
export const needSubscribe = (tip = window.siyuan.languages._kernel[29]) => {
|
||||
if (window.siyuan.user && (window.siyuan.user.userSiYuanProExpireTime === -1 || window.siyuan.user.userSiYuanProExpireTime > 0)) {
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue