1
0

update premium 17

This commit is contained in:
2023-04-28 23:34:59 +09:00
parent d4ee96b1dc
commit a0ac2438ed
2 changed files with 13 additions and 4 deletions

View File

@ -15,6 +15,12 @@ nd=`date +"%Y%m%d"`
n=`echo $data|jq length`
n=$((n - 1))
if [ -n "$1" ];then
id=$1
curl -X PATCH -H "Content-Type: application/json" -d "{\"next\":\"$nd\", \"updated_at\":\"$updated_at_n\",\"token\":\"$token\"}" -s $host/users/$id
exit
fi
for ((i=0;i<=$n;i++))
do
name=`echo $data|jq ".[$i]"|jq -r .username`