diff --git a/bin/verse.zsh b/bin/verse.zsh index 14b1fc4..b67fe34 100755 --- a/bin/verse.zsh +++ b/bin/verse.zsh @@ -1,12 +1,20 @@ #!/bin/zsh function at_env_arg() { + host=syu.is handle=ai.syui.ai col=ai.syui.verse.user - host=syu.is } function at_env() { + + if [ -n "$1" ];then + handle=$1 + fi + if [ -n "$2" ];then + col=$2 + fi + d=${0:a:h} cd $d dd=${0:a:h:h} @@ -21,7 +29,7 @@ function at_env() { refresh=`cat $f|jq -r .refreshJwt` fi 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 ai.syui.verse) @@ -106,7 +114,7 @@ function at_delete_record() { } at_env_arg -at_env +at_env $1 $2 at_create_session at_refresh_session diff --git a/json/ai.syui.ai.user.json b/json/ai.syui.ai.user.json new file mode 100644 index 0000000..89ecbbb --- /dev/null +++ b/json/ai.syui.ai.user.json @@ -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 } + ] +} diff --git a/json/syui.syui.ai.user.json b/json/syui.syui.ai.user.json new file mode 100644 index 0000000..3f97fea --- /dev/null +++ b/json/syui.syui.ai.user.json @@ -0,0 +1,11 @@ +{ + "character": [ + { "id": 1, "cp": 100 , "mode": 0, "unique": false } + ], + "item": [ + { "id": 1, "cp": 0 } + ], + "card": [ + { "id": 1, "cp": 0 } + ] +}