Browse Source

ユーザのフェッチ

main
miteruzo 1 year ago
parent
commit
fec7982904
1 changed files with 16 additions and 16 deletions
  1. +16
    -16
      modules/user.mod.hsp

+ 16
- 16
modules/user.mod.hsp View File

@@ -1,32 +1,32 @@
#module \ #module \
User 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 \ #deffunc local \
Create \ Create \
int p_insId,\
local l_data local l_data
HTTPLoad URL
HTTPLoad CREATE_URL
HTTPInfo l_data HTTPInfo l_data


id.p_insId = 0
pass.p_insId = ""
id = 0
pass = ""


Return Return


#deffunc local \ #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 Return


#global #global


Loading…
Cancel
Save