add global config
This commit is contained in:
34
README.md
34
README.md
@@ -3,7 +3,7 @@
|
||||
|
||||
使用 Vue 、ts 和 Vite 创建 kintone plugin 的初始化模板,先由 [create-plugin](https://cybozu.dev/ja/kintone/sdk/development-environment/create-plugin/) 生成之后再手动引入 Vue。
|
||||
|
||||
并且提供了 [License 检查](#License-检查) 的功能。
|
||||
并且提供了 [License 检查](#license-检查) 的功能。
|
||||
|
||||
> プラグイン開発手順:https://cybozu.dev/ja/kintone/tips/development/plugins/development-plugin/
|
||||
|
||||
@@ -78,15 +78,35 @@ npm install # 或 yarn
|
||||
}
|
||||
```
|
||||
|
||||
3. 如果需要使用 License 检查,请参考: [License 检查](#License-检查)
|
||||
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