panel fix
This commit is contained in:
parent
d027e13595
commit
ed3cae9c33
@ -200,7 +200,7 @@ public class BunkerBot extends TelegramLongPollingBot {
|
||||
p.setLuggage((Luggage) BotUtils.getRandomFromList(luggs, random));
|
||||
p.setHobby((Hobby) BotUtils.getRandomFromList(hobbies, random));
|
||||
p.setHealth((Health) BotUtils.getRandomFromList(healths, random));
|
||||
if( random.nextBoolean() ) {
|
||||
if( true ) { // random.nextBoolean()
|
||||
p.setScripts(Arrays.asList((ActionScript) BotUtils.getRandomFromList(scripts, random)));
|
||||
} else {
|
||||
p.setScripts(new ArrayList<>());
|
||||
|
@ -103,7 +103,7 @@ public class DatabaseController {
|
||||
}
|
||||
|
||||
private void saveAction(Map<String, String> params) {
|
||||
String scriptBody = params.get("action_body_text");
|
||||
String scriptBody = new String(HashUtils.decodeHexString(params.get("action_body_text")));
|
||||
|
||||
String name_text = new String(HashUtils.decodeHexString(params.get("action_name_text")));
|
||||
TextDataVal t1 = textDataValService.save(new TextDataVal(name_text));
|
||||
|
@ -15,7 +15,7 @@ function grab_form() {
|
||||
let query = "";
|
||||
if(input.attr("type") == "checkbox") {
|
||||
query = input.attr('id') + "=" + input.is(':checked');
|
||||
} else if(input.attr("type") == "text") {
|
||||
} else if(input.attr("type") == "text" || input.attr("id") == "action_body_text") {
|
||||
var vv = str_toHex(input.val());
|
||||
query = input.attr('id') + "=" + vv;
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user