forked from github/dataease
Merge pull request #6928 from dataease/pr@dev-v2@perf_lic_controller
perf: 许可控制
This commit is contained in:
commit
642b93a52f
@ -14,7 +14,7 @@ import org.springframework.web.bind.annotation.RestController;
|
|||||||
@RequestMapping("/license")
|
@RequestMapping("/license")
|
||||||
public class LicenseServer implements LicenseApi {
|
public class LicenseServer implements LicenseApi {
|
||||||
|
|
||||||
private static final String product = "DataEase";
|
private static final String product = "DataEase v2";
|
||||||
@Resource
|
@Resource
|
||||||
private CoreLicManage coreLicManage;
|
private CoreLicManage coreLicManage;
|
||||||
|
|
||||||
|
@ -90,7 +90,7 @@ const validateHandler = (param, success) => {
|
|||||||
}
|
}
|
||||||
const getLicense = result => {
|
const getLicense = result => {
|
||||||
if (result.status === 'valid') {
|
if (result.status === 'valid') {
|
||||||
tipsSuffix.value = result.edition === 'Embedded' ? '套' : '个账号'
|
tipsSuffix.value = result?.license?.edition === 'Embedded' ? '套' : '个账号'
|
||||||
}
|
}
|
||||||
return {
|
return {
|
||||||
status: result.status,
|
status: result.status,
|
||||||
|
Loading…
Reference in New Issue
Block a user