1
0

update premium 17

This commit is contained in:
syui 2023-04-28 23:34:59 +09:00
parent d4ee96b1dc
commit a0ac2438ed
Signed by: syui
GPG Key ID: 5417CFEBAD92DF56
2 changed files with 13 additions and 4 deletions

View File

@ -36,20 +36,23 @@ func (Card) Fields() []ent.Field {
} else {
card = 0
}
card = 17
if card == 13 {
card = 1
card = 2
}
if card == 17 {
card = 2
}
// 2023/04/09 premium card id:15
if card == 15 {
card = 1
card = 3
}
// 2023/04/13 premium card id:16
if card == 16 {
card = 1
card = 4
}
return card
}).

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`