From 5b384bfc6cbc69883f881de42ba33ded03af0a64 Mon Sep 17 00:00:00 2001 From: NfoAlex <40430040+NfoAlex@users.noreply.github.com> Date: Sun, 18 Jun 2023 04:24:12 +0900 Subject: [PATCH 1/3] =?UTF-8?q?[change]=20-=20=E3=83=90=E3=83=BC=E3=82=B8?= =?UTF-8?q?=E3=83=A7=E3=83=B3=E6=83=85=E5=A0=B1=E3=81=AE=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 8f5865f..1a2077d 100644 --- a/index.js +++ b/index.js @@ -12,7 +12,7 @@ const e = require("express"); const port = process.env.PORT || 33333; -const SERVER_VERSION = "alpha_20230617"; +const SERVER_VERSION = "alpha_20230618"; const app = express(); const server = http.createServer(app); From 50c256f41087a0e9e7f1971f24f84a242fbb64bf Mon Sep 17 00:00:00 2001 From: NfoAlex <40430040+NfoAlex@users.noreply.github.com> Date: Sun, 18 Jun 2023 04:24:26 +0900 Subject: [PATCH 2/3] =?UTF-8?q?[fix]=20-=20=E3=83=A6=E3=83=BC=E3=82=B6?= =?UTF-8?q?=E3=83=BCID=E7=94=9F=E6=88=90=E6=99=82=E3=81=AB=E4=B9=B1?= =?UTF-8?q?=E6=95=B0=E3=81=AE=E7=AF=84=E5=9B=B2=E3=81=8C12=E3=81=AB?= =?UTF-8?q?=E3=81=AA=E3=81=A3=E3=81=A6=E3=81=84=E3=81=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- auth.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/auth.js b/auth.js index f1b4313..3d421f3 100644 --- a/auth.js +++ b/auth.js @@ -121,10 +121,11 @@ let registerUser = function registerUser(dat) { //dat=[0=>name(名前), 1=>key( } + //ID格納用 let newID = ""; //ID生成 for ( let i=0; i<8; i++ ) { - newID += parseInt(Math.random() * 12); //乱数を追加 + newID += parseInt(Math.random() * 9); //乱数を追加 } From eb1c812d737d8a1c0450aa8f6622c1959d01e3e1 Mon Sep 17 00:00:00 2001 From: NfoAlex <40430040+NfoAlex@users.noreply.github.com> Date: Sun, 18 Jun 2023 04:28:42 +0900 Subject: [PATCH 3/3] =?UTF-8?q?[change]=20-=20=E3=83=A6=E3=83=BC=E3=82=B6?= =?UTF-8?q?=E3=83=BCID=E3=81=AE=E7=94=9F=E6=88=90=E6=99=82=E3=81=AE?= =?UTF-8?q?=E6=95=B4=E6=95=B0=E5=8C=96=E9=83=A8=E5=88=86=E3=82=92=E5=A4=89?= =?UTF-8?q?=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- auth.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/auth.js b/auth.js index 3d421f3..d83e317 100644 --- a/auth.js +++ b/auth.js @@ -125,7 +125,7 @@ let registerUser = function registerUser(dat) { //dat=[0=>name(名前), 1=>key( let newID = ""; //ID生成 for ( let i=0; i<8; i++ ) { - newID += parseInt(Math.random() * 9); //乱数を追加 + newID += Math.trunc(Math.random() * 9); //乱数を追加 }