From fec79829047543c4f1d8565ffcf52c4be7eb1daf Mon Sep 17 00:00:00 2001 From: miteruzo Date: Wed, 12 Jul 2023 08:20:02 +0900 Subject: [PATCH] =?UTF-8?q?=E3=83=A6=E3=83=BC=E3=82=B6=E3=81=AE=E3=83=95?= =?UTF-8?q?=E3=82=A7=E3=83=83=E3=83=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/user.mod.hsp | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/modules/user.mod.hsp b/modules/user.mod.hsp index 7e37ce9..a57ddc1 100644 --- a/modules/user.mod.hsp +++ b/modules/user.mod.hsp @@ -1,32 +1,32 @@ #module \ User -#define URL (CONFIG_SERVER_URL + "/create_user.php") - -#defcfunc local \ -New - id.insNum = 0 - pass.insNum = "" - - insNum++ - - Return insNum - 1 +#define CREATE_URL (CONFIG_SERVER_URL + "/create_user.php") +#define FETCH_URL (CONFIG_SERVER_URL + "/fetch_user.php") #deffunc local \ Create \ - int p_insId,\ local l_data - HTTPLoad URL + HTTPLoad CREATE_URL HTTPInfo l_data - id.p_insId = 0 - pass.p_insId = "" + id = 0 + pass = "" Return #deffunc local \ -Get \ - int p_insId +Fetch \ + int p_id,\ + local l_data + id = userId@Setting + pass = userPasscode@Setting + + HTTPLoad CREATE_URL + HTTPInfo l_data + + pass = "" + Return #global