This commit is contained in:
devezhao 2020-10-16 22:25:34 +08:00
parent 94391277b1
commit 9f701223fa
2 changed files with 3 additions and 3 deletions

View file

@ -21,7 +21,7 @@ import java.util.regex.Pattern;
* @author devezhao
* @since 2020/3/16
*/
public class AdminCLI {
public class AdminCLI2 {
private static final String C_HELP = "help";
private static final String C_CACHE = "cache";
@ -32,7 +32,7 @@ public class AdminCLI {
/**
* @param args
*/
protected AdminCLI(String args) {
protected AdminCLI2(String args) {
List<String> list = new ArrayList<>();
Matcher m = Pattern.compile("([^\"]\\S*|\".+?\")\\s*").matcher(args);
while (m.find()) {

View file

@ -114,7 +114,7 @@ public class AdminVerfiyController extends BaseController {
return;
}
String result = new AdminCLI(command).exec();
String result = new AdminCLI2(command).exec();
ServletUtils.write(response, result);
}
}