@Component public class LicenseVerifyDirective extends AbstractTemplateDirective
参数列表
licenseData
:授权文件数据
返回结果
result
:验证结果,【true:验证成功,false:验证失败】
<@tools.licenseVerify licenseData='content'>${url}</@tools.licenseVerify>
<script> $.getJSON('${site.dynamicPath}api/directive/tools/licenseVerify?licenseData=content', function(data){ console.log(data); }); </script>
ADVANCED, AUTH_TOKEN, AUTH_USER_ID, siteComponent
log
构造器和说明 |
---|
LicenseVerifyDirective() |
限定符和类型 | 方法和说明 |
---|---|
void |
execute(RenderHandler handler) |
execute, expose, getAdvanced, getApp, getSite, getUserId, needAppToken, needUserToken, supportAdvanced
execute, getName, getNamespace, getShortName, httpEnabled, setName, setNamespace, setShortName
public void execute(RenderHandler handler) throws java.io.IOException, freemarker.template.TemplateException
java.io.IOException
freemarker.template.TemplateException