This commit is contained in:
Daniel 2025-03-25 23:57:12 +08:00
parent 69642e3bac
commit 3ebfdf6c5b
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
21 changed files with 77 additions and 72 deletions

View file

@ -11,7 +11,7 @@ import {isKernelInMobile} from "../util/functions";
const renderProvider = (provider: number) => {
if (provider === 0) {
if (needSubscribe("")) {
return `<div class="b3-label b3-label--inner">${window.siyuan.config.system.container === "ios" ? window.siyuan.languages._kernel[122] : window.siyuan.languages._kernel[29].replace("${url}", getCloudURL("subscribe/siyuan"))}</div>
return `<div class="b3-label b3-label--inner">${window.siyuan.config.system.container === "ios" ? window.siyuan.languages._kernel[122] : window.siyuan.languages._kernel[29].replaceAll("${accountServer}", getCloudURL(""))}</div>
<div class="b3-label b3-label--inner">
${window.siyuan.languages.cloudIntro1}
<div class="b3-label__text">
@ -41,7 +41,7 @@ const renderProvider = (provider: number) => {
</div>`;
}
if (!isPaidUser()) {
return `<div class="b3-label b3-label--inner">${window.siyuan.languages["_kernel"][214]}</div>`;
return `<div class="b3-label b3-label--inner">${window.siyuan.languages["_kernel"][214].replaceAll("${accountServer}", getCloudURL(""))}</div>`;
}
if (provider === 2) {
return `<div class="b3-label b3-label--inner">

View file

@ -33,6 +33,9 @@ export const setAccessAuthCode = () => {
export const getCloudURL = (key: string) => {
const origin = window.siyuan.config.cloudRegion === 0 ? "https://ld246.com" : "https://liuyun.io";
if (!key || "" === key) {
return origin;
}
return `${origin}/${key}`;
};