add global config
This commit is contained in:
30
README.md
30
README.md
@@ -80,13 +80,33 @@ npm install # 或 yarn
|
||||
|
||||
3. 如果需要使用 License 检查,请参考: [License 检查](#License-检查)
|
||||
|
||||
一般需要修改 `LicenseStatus.vue` 里面的 `purchaseLicense()` 中打开的链接。
|
||||
需要修改 `src/config.json`:
|
||||
|
||||
```diff
|
||||
function purchaseLicense() {
|
||||
// ...
|
||||
+ window.open(`修改购买页面,或者重用也不是不可以`)
|
||||
- window.open(`https://alisurvey.alicorns.co.jp/s/Iuc5RxZv?${queryParams}`);
|
||||
{
|
||||
"license": {
|
||||
"enabled": true, // 是否开启 License 检查
|
||||
"api": {
|
||||
"checkUrl": "https://kintone.alicorns.co.jp/api/license/check", // server 路径,一般不需要修改
|
||||
+ "pluginKey": 插件的 id,需要和后端数据库中保持一致
|
||||
- "pluginKey": "kintone-vue-template"
|
||||
},
|
||||
"purchase": {
|
||||
+ "url": 购买页面打开的链接
|
||||
- "url": "https://alisurvey.alicorns.co.jp/s/Iuc5RxZv",
|
||||
"formIds": {
|
||||
+ "name": 表单中存储申请人的名字的 field id, 会设置为 kintone 的登陆用户名,为空就跳过
|
||||
- "name": "input1761283314263",
|
||||
+ "email": 表单中存储申请人 email 的 field id, 会设置为 kintone 的登陆邮箱,为空就跳过
|
||||
- "email": "input1761283275767",
|
||||
+ "domain": 表单中存储用户 url domain 的 field id, 会设置为 url
|
||||
- "domain": "input1761283180784",
|
||||
+ "pluginId": 表单中存储用户 plugin id 的 field id, 会设置为 plugin id
|
||||
- "pluginId": "input1761283200616"
|
||||
}
|
||||
},
|
||||
"warningDaysBeforeExpiry": 7 // 进行提醒的剩余天数
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user