This commit is contained in:
728
2023-05-31 10:16:58 +08:00
parent cbb8f39b3f
commit f8fb020662
3 changed files with 3 additions and 3 deletions

View File

@ -1,6 +1,6 @@
rm -rf dbexport
coll=(usr soc agd ord work fund act aut wsl lit)
coll=(usr soc agd ord work fund dst act aut wsl lit)
for c in $coll; do
echo exporting ismism.$c to dbexport/$c.json

View File

@ -1,4 +1,4 @@
coll=(usr soc agd ord work fund act aut wsl lit)
coll=(usr soc agd ord work fund dst act aut wsl lit)
for c in $coll; do
echo importing $1/$c.json to ismism.$c

View File

@ -590,7 +590,7 @@ export async function dst(
nam: { p1: "投票名称:", p2: "图片外链:", p3: "销售目标100-衣服,1000-标牌,10000-汽车)", p4: "当前销量:(箱)", pa: "简介" },
val: { p1: q.rd?.nam, p2: q.rd?.img, p3: q.rd?.goal.map((g, n) => `${g}-${q.rd!.prize[n]}`).join(",") ?? "", p4: `${q.rd?.sale ?? 0}`, pa: q.rd?.intro },
lim_pa: lim_md, p: "put", b: p => {
const gp = p.p3?.split(",") ?? []
const gp = p.p3 && p.p3.length > 0 ? p.p3.split(",") : []
const rd = JSON.stringify({
nam: p.p1, img: p.p2, intro: p.pa, sale: parseInt(p.p4!),
goal: gp.map(s => parseInt(s.split("-")[0])),