mirror of
https://gitee.com/guoyifanA/qiu-mo-jetbrains-help.git
synced 2026-09-26 16:41:53 +08:00
修复生成的插件激活码无效的问题
This commit is contained in:
@@ -178,15 +178,7 @@ const App = {
|
|||||||
this.isGenerating = true
|
this.isGenerating = true
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const isPlugin = this.selectedItem.hasOwnProperty('id')
|
const result = await ApiService.generateLicense(this.selectedItem.productCode, this.config.licenseName, this.config.assigneeName, this.licenseConfig.expiryDate)
|
||||||
let result
|
|
||||||
|
|
||||||
if (isPlugin) {
|
|
||||||
result = await ApiService.generatePluginLicense(this.selectedItem.id, this.config.licenseName, this.config.assigneeName, this.licenseConfig.expiryDate)
|
|
||||||
} else {
|
|
||||||
result = await ApiService.generateLicense(this.selectedItem.productCode, this.config.licenseName, this.config.assigneeName, this.licenseConfig.expiryDate)
|
|
||||||
}
|
|
||||||
|
|
||||||
this.generatedLicense = result
|
this.generatedLicense = result
|
||||||
this.showLicenseModal = false
|
this.showLicenseModal = false
|
||||||
this.showResultModal = true
|
this.showResultModal = true
|
||||||
|
|||||||
@@ -253,17 +253,6 @@ const ApiService = {
|
|||||||
return await this.getText(`/license-code/generate?${params}`)
|
return await this.getText(`/license-code/generate?${params}`)
|
||||||
},
|
},
|
||||||
|
|
||||||
// 生成插件激活码
|
|
||||||
async generatePluginLicense(pluginId, licenseeName, assigneeName, expiryDate) {
|
|
||||||
const params = new URLSearchParams({
|
|
||||||
pluginId,
|
|
||||||
licenseeName,
|
|
||||||
assigneeName,
|
|
||||||
expiryDate
|
|
||||||
})
|
|
||||||
return await this.getText(`/license-code/generate?${params}`)
|
|
||||||
},
|
|
||||||
|
|
||||||
// 下载代理工具
|
// 下载代理工具
|
||||||
downloadAgent() {
|
downloadAgent() {
|
||||||
window.open('/ja-netfilter', '_blank')
|
window.open('/ja-netfilter', '_blank')
|
||||||
|
|||||||
Reference in New Issue
Block a user