Compare commits

...

2 Commits

Author SHA1 Message Date
bd4503ac37 correção do bug de criação de inventario 2025-06-26 16:33:12 -03:00
97a5c41d5f correção do bug de criação de inventario 2025-06-26 16:29:52 -03:00
3 changed files with 2 additions and 2 deletions

Binary file not shown.

View File

@@ -68,7 +68,7 @@ func registrar(c echo.Context) error {
return jsonError(c, http.StatusInternalServerError, "erro ao criar inventario de poderes do player: "+player)
}
query = fmt.Sprintf(`CREATE TABLE inv_%s (id INT NOT NULL AUTO_INCREMENT, item_nome VARCHAR(30) NOT NULL , quantidade INT NOT NULL DEFAULT '1' , item_peso INT NOT NULL DEFAULT '1' , item_durabilit BOOLEAN NOT NULL DEFAULT FALSE ) ENGINE = InnoDB;`, player)
query = fmt.Sprintf("CREATE TABLE inv_%s (id INT NOT NULL AUTO_INCREMENT, item_nome VARCHAR(30) NOT NULL, quantidade INT NOT NULL DEFAULT '1', item_peso INT NOT NULL DEFAULT '1', item_durabilit BOOLEAN NOT NULL DEFAULT FALSE, PRIMARY KEY (`id`)) ENGINE = InnoDB;", player)
newInv, err := db.Query(query)
if err != nil {
return jsonError(c, http.StatusInternalServerError, "erro ao criar o inventario do player: "+player)

View File

@@ -288,7 +288,7 @@ $(document).ready(function () {
});
$(".obs").on("click", function () {
const textToCopy = `${window.location.origin}/obs.html?id=1${playerID}`;
const textToCopy = `${window.location.origin}/obs.html?id=${playerID}`;
share(textToCopy);
});