1
0
This commit is contained in:
2025-08-04 11:54:31 +09:00
parent 5829898ebf
commit 7d785b419f
3 changed files with 36 additions and 3 deletions

View File

@@ -1,12 +1,20 @@
#!/bin/zsh #!/bin/zsh
function at_env_arg() { function at_env_arg() {
host=syu.is
handle=ai.syui.ai handle=ai.syui.ai
col=ai.syui.verse.user col=ai.syui.verse.user
host=syu.is
} }
function at_env() { function at_env() {
if [ -n "$1" ];then
handle=$1
fi
if [ -n "$2" ];then
col=$2
fi
d=${0:a:h} d=${0:a:h}
cd $d cd $d
dd=${0:a:h:h} dd=${0:a:h:h}
@@ -21,7 +29,7 @@ function at_env() {
refresh=`cat $f|jq -r .refreshJwt` refresh=`cat $f|jq -r .refreshJwt`
fi fi
j_verse=`cat $dd/json/verse.json` j_verse=`cat $dd/json/verse.json`
j_user=`cat $dd/json/user.json` j_user=`cat $dd/json/${handle}.user.json`
case $col in case $col in
ai.syui.verse) ai.syui.verse)
@@ -106,7 +114,7 @@ function at_delete_record() {
} }
at_env_arg at_env_arg
at_env at_env $1 $2
at_create_session at_create_session
at_refresh_session at_refresh_session

14
json/ai.syui.ai.user.json Normal file
View File

@@ -0,0 +1,14 @@
{
"character": [
{ "id": 0, "cp": 100 , "mode": 2, "unique": false },
{ "id": 1, "cp": 100 , "mode": 0, "unique": false }
],
"item": [
{ "id": 0, "cp": 0 },
{ "id": 1, "cp": 0 }
],
"card": [
{ "id": 0, "cp": 0 },
{ "id": 1, "cp": 0 }
]
}

View File

@@ -0,0 +1,11 @@
{
"character": [
{ "id": 1, "cp": 100 , "mode": 0, "unique": false }
],
"item": [
{ "id": 1, "cp": 0 }
],
"card": [
{ "id": 1, "cp": 0 }
]
}