diff --git a/src/main/java/io/jboot/web/directive/base/JbootDirectiveBase.java b/src/main/java/io/jboot/web/directive/base/JbootDirectiveBase.java index 72eebf2c7ad990f7d36d861d94049264b3be8f84..817deb0f4a8f26d06682c20d33e35ea23f9c8aed 100644 --- a/src/main/java/io/jboot/web/directive/base/JbootDirectiveBase.java +++ b/src/main/java/io/jboot/web/directive/base/JbootDirectiveBase.java @@ -110,25 +110,25 @@ public abstract class JbootDirectiveBase extends Directive { } - public Long getParaToLang(String key, Scope scope) { + public Long getParaToLong(String key, Scope scope) { Object object = getPara(key, scope, null); if (object == null || object instanceof Long) return (Long) object; return Long.valueOf(object.toString()); } - public Long getParaToLang(String key, Scope scope, Long defaultValue) { - Long v = getParaToLang(key, scope); + public Long getParaToLong(String key, Scope scope, Long defaultValue) { + Long v = getParaToLong(key, scope); return v == null ? defaultValue : v; } - public Long getParaToLang(int index, Scope scope) { + public Long getParaToLong(int index, Scope scope) { Object object = getPara(index, scope, null); if (object == null || object instanceof Long) return (Long) object; return Long.valueOf(object.toString()); } - public Long getParaToLang(int index, Scope scope, Long defaultValue) { - Long v = getParaToLang(index, scope); + public Long getParaToLong(int index, Scope scope, Long defaultValue) { + Long v = getParaToLong(index, scope); return v == null ? defaultValue : v; }