add check token api

This commit is contained in:
Sola
2015-12-22 01:24:11 +08:00
parent 37691b71c1
commit 0e14911650
3 changed files with 71 additions and 3 deletions

View File

@@ -34,13 +34,11 @@ public enum Command {
}
}
public final String name;
public final String regex;
public final Class<? extends WxMpMessageHandler> handler;
public final int id;
Command(int id, Class<? extends WxMpMessageHandler> handler) {
this.name = lang("CMD_" + name());
this.id = id;
this.regex = lang("REGEX_" + name());
this.handler = handler;
@@ -52,7 +50,7 @@ public enum Command {
@Override
public String toString() {
return name;
return name();
}
}