类 GetSha256Method

java.lang.Object
com.publiccms.common.base.BaseMethod
com.publiccms.views.method.tools.GetSha256Method
所有已实现的接口:
freemarker.template.TemplateMethodModel, freemarker.template.TemplateMethodModelEx, freemarker.template.TemplateModel

@Component public class GetSha256Method extends BaseMethod
getSha256 获取sha256

参数列表

parameter list

パラメータリスト

  1. 字符串

返回结果

return result

戻り値

  • string:sha256值

使用示例

usage example

使用例

${getSha256('aaa')}

<script>
$.getJSON('${site.dynamicPath}api/method/getSha256?parameters=aaa', function(data){
console.log(data);
});
</script>
 
  • 构造器详细资料

    • GetSha256Method

      public GetSha256Method()
  • 方法详细资料

    • execute

      public Object execute(List<freemarker.template.TemplateModel> arguments) throws freemarker.template.TemplateModelException
      指定者:
      execute 在类中 BaseMethod
      抛出:
      freemarker.template.TemplateModelException
    • needAppToken

      public boolean needAppToken()
      指定者:
      needAppToken 在类中 BaseMethod
      返回:
      whether to need app token
    • minParametersNumber

      public int minParametersNumber()
      指定者:
      minParametersNumber 在类中 BaseMethod
      返回:
      min parameters number