From 88f7fed3d23bfa4ae572dccadbd10ec5500e764b Mon Sep 17 00:00:00 2001 From: retire Date: Fri, 22 Feb 2019 13:13:29 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20=E6=96=B9=E6=B3=95?= =?UTF-8?q?=E5=90=8D=E6=8B=BC=E5=86=99=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../jboot/web/directive/base/JbootDirectiveBase.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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 72eebf2c..817deb0f 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; } -- Gitee