mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-16 21:55:29 +01:00
This commit is contained in:
parent
f3869593f0
commit
2ca0cfadde
6 changed files with 19 additions and 24 deletions
|
|
@ -1,16 +1,6 @@
|
|||
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