update premium 17
This commit is contained in:
parent
d4ee96b1dc
commit
a0ac2438ed
@ -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
|
||||
}).
|
||||
|
@ -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`
|
||||
|
Loading…
Reference in New Issue
Block a user