feat: add simple license activation server
This commit is contained in:
1 parent
b2db5ed499
commit
05be83d289
17 files changed
+1053
-6
No files matched your search
@@ -46,6 +46,23 @@
|
||||
|
||||
正式分发不要使用 HTTP;`sha256` 只能防安装包下载损坏,不能替代可信 manifest。
|
||||
|
||||
## 在线卡密激活配置
|
||||
|
||||
正式接入服务器后,在本地配置中增加:
|
||||
|
||||
```json
|
||||
{
|
||||
"license": {
|
||||
"activation_url": "https://license.example.com/api/v1/activate",
|
||||
"timeout_seconds": 10
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
未配置 `activation_url` 时,客户端仍只按旧逻辑安装 `DYGJ-` 离线授权码或完整
|
||||
`license.dat` 内容。配置后,普通 `DG-` 卡密会请求服务器激活,服务器返回的签名授权
|
||||
仍会先在本地验签,通过后才写入 `license.dat`。
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user