类 ConfuseMethod
java.lang.Object
com.publiccms.common.base.BaseMethod
com.publiccms.views.method.tools.ConfuseMethod
- 所有已实现的接口:
freemarker.template.TemplateMethodModel
,freemarker.template.TemplateMethodModelEx
,freemarker.template.TemplateModel
- 直接已知子类:
ConfuseHtmlMethod
confuse 混淆文字
参数列表
- 字符串
- 数字,默认为字符数的1/5
- 布尔,是否html,默认否
返回结果
ConfuseResult
:map{text:加密文本,font:加密字体}
<#assign result=confuse('天津黑核科技有限公司',11)/>
<style>
@font-face {font-family:confuse;src:url(${result.font});}
#content{font-family:confuse !important;}
</style>
<div id="content">${(result.text)!}</div无效输入:'>'
<script> $.getJSON('${site.dynamicPath}api/method/confuse?parameters=aaa&appToken=接口访问授权Token', function(data){ console.log(data); }); </script>
-
字段概要
字段从类继承的字段 com.publiccms.common.base.BaseMethod
log
从接口继承的字段 freemarker.template.TemplateModel
NOTHING
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明protected ConfuseResult
execute
(jakarta.servlet.http.HttpServletRequest request, List<freemarker.template.TemplateModel> arguments) int
boolean
从类继承的方法 com.publiccms.common.base.BaseMethod
exec, getBoolean, getDate, getDouble, getInteger, getIntegerArray, getLong, getLongArray, getMap, getModel, getName, getShort, getString, getStringArray, httpEnabled, setName
-
字段详细资料
-
textConfigComponent
-
-
构造器详细资料
-
ConfuseMethod
public ConfuseMethod()
-
-
方法详细资料
-
execute
public Object execute(jakarta.servlet.http.HttpServletRequest request, List<freemarker.template.TemplateModel> arguments) throws freemarker.template.TemplateModelException - 覆盖:
execute
在类中BaseMethod
- 抛出:
freemarker.template.TemplateModelException
-
execute
public Object execute(List<freemarker.template.TemplateModel> arguments) throws freemarker.template.TemplateModelException - 指定者:
execute
在类中BaseMethod
- 抛出:
freemarker.template.TemplateModelException
-
confuse
-
execute
public Object execute(SysSite site, List<freemarker.template.TemplateModel> arguments) throws freemarker.template.TemplateModelException - 抛出:
freemarker.template.TemplateModelException
-
needAppToken
public boolean needAppToken()- 指定者:
needAppToken
在类中BaseMethod
- 返回:
- whether to need app token
-
minParametersNumber
public int minParametersNumber()- 指定者:
minParametersNumber
在类中BaseMethod
- 返回:
- min parameters number
-