mirror of https://github.com/certd/certd
chore: 1
parent
c9d18f6d8a
commit
4053e72782
|
@ -146,20 +146,42 @@ function openUpgrade() {
|
||||||
},
|
},
|
||||||
maskClosable: true,
|
maskClosable: true,
|
||||||
okText: "激活",
|
okText: "激活",
|
||||||
width: 500,
|
width: 900,
|
||||||
content: () => {
|
content: () => {
|
||||||
const vipLabel = userStore.vipLabel;
|
const vipLabel = userStore.vipLabel;
|
||||||
return (
|
return (
|
||||||
<div class="mt-10 mb-10">
|
<div class="mt-10 mb-10">
|
||||||
<div>
|
<div>
|
||||||
<h3 class="block-header">专业版特权</h3>
|
<a-row gutter={20}>
|
||||||
|
<a-col span={8}>
|
||||||
|
<h3 class="block-header">免费版</h3>
|
||||||
|
<ul>
|
||||||
|
<li>证书申请功能无限制</li>
|
||||||
|
<li>证书流水线数量限制10条</li>
|
||||||
|
<li>部分部署插件不可用</li>
|
||||||
|
</ul>
|
||||||
|
</a-col>
|
||||||
|
<a-col span={8}>
|
||||||
|
<h3 class="block-header">专业版</h3>
|
||||||
<ul>
|
<ul>
|
||||||
<li>可加VIP群,需求优先实现</li>
|
<li>可加VIP群,需求优先实现</li>
|
||||||
<li>证书流水线数量无限制(免费版限制10条)</li>
|
<li>证书流水线数量无限制</li>
|
||||||
<li>免配置发邮件功能</li>
|
<li>免配置发邮件功能</li>
|
||||||
<li>FTP上传、cdnfly、宝塔、易盾、群晖等部署插件</li>
|
<li>宝塔、易盾、群晖、cdnfly、1Panel等部署插件</li>
|
||||||
<li>更多特权敬请期待</li>
|
<li>多用户有限制</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
</a-col>
|
||||||
|
<a-col span={8}>
|
||||||
|
<h3 class="block-header">商业版</h3>
|
||||||
|
<ul>
|
||||||
|
<li>拥有专业版所有特权</li>
|
||||||
|
<li>修改logo、标题</li>
|
||||||
|
<li>多用户无限制</li>
|
||||||
|
<li>支持用户支付</li>
|
||||||
|
<li>允许商用</li>
|
||||||
|
</ul>
|
||||||
|
</a-col>
|
||||||
|
</a-row>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<h3 class="block-header">{isPlus ? "续期" : "立刻激活"}</h3>
|
<h3 class="block-header">{isPlus ? "续期" : "立刻激活"}</h3>
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
"@alicloud/pop-core": "^1.7.10",
|
"@alicloud/pop-core": "^1.7.10",
|
||||||
"@certd/acme-client": "^1.25.9",
|
"@certd/acme-client": "^1.25.9",
|
||||||
"@certd/lib-huawei": "^1.25.9",
|
"@certd/lib-huawei": "^1.25.9",
|
||||||
"@certd/commcial-core": "^1.25.9",
|
"@certd/commercial-core": "^1.25.9",
|
||||||
"@certd/lib-jdcloud": "^1.25.9",
|
"@certd/lib-jdcloud": "^1.25.9",
|
||||||
"@certd/lib-k8s": "^1.25.9",
|
"@certd/lib-k8s": "^1.25.9",
|
||||||
"@certd/midway-flyway-js": "^1.25.9",
|
"@certd/midway-flyway-js": "^1.25.9",
|
||||||
|
|
|
@ -6,6 +6,7 @@ import { nanoid } from 'nanoid';
|
||||||
import { SysInstallInfo, SysPrivateSettings } from '../system/service/models.js';
|
import { SysInstallInfo, SysPrivateSettings } from '../system/service/models.js';
|
||||||
import crypto from 'crypto';
|
import crypto from 'crypto';
|
||||||
import { PlusService } from '../basic/service/plus-service.js';
|
import { PlusService } from '../basic/service/plus-service.js';
|
||||||
|
import { isComm } from '@certd/plus-core';
|
||||||
|
|
||||||
export type InstallInfo = {
|
export type InstallInfo = {
|
||||||
installTime: number;
|
installTime: number;
|
||||||
|
@ -57,6 +58,15 @@ export class AutoInitSite {
|
||||||
// 授权许可
|
// 授权许可
|
||||||
await this.plusService.verify();
|
await this.plusService.verify();
|
||||||
|
|
||||||
|
if (isComm()) {
|
||||||
|
//加载商业版代码
|
||||||
|
try {
|
||||||
|
await import('@certd/commercial-core');
|
||||||
|
} catch (e) {
|
||||||
|
logger.error('加载商业版代码失败,请尝试升级版本', e);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
logger.info('初始化站点完成');
|
logger.info('初始化站点完成');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue