像素骑士大冒险

新手村 → 训练营 → 毒雾挑战 → 终极魔王

题库发布后台

1. 管理员登录

等待登录

2. 导入 Excel

表头:序号 | 题目 | A | B | C | D | 正确答案

答案支持任意组合,例如 A、A,C、B,D、A,B,C,D。中英文逗号都可以。

尚未选择文件。

3. 闯关数据

输入统计密码后可查看最近数据。

0玩家次数
0通关次数
0最高分
0今日活跃
开始时间 玩家 状态 进度 分数 答对/答错
暂无数据

手机画面预览

新手村 (1/10)
导入题库后,这里会显示最长的题目。
◀ ▶

建议题目简洁、选项清楚。超长文字会自动缩小,不会被裁掉。

首次使用:Supabase 题库配置说明与建表 SQL

先在本文 HTML 的 CLOUD_CONFIG 中填入项目 URL 和 publishable/anon key,再在 Supabase SQL Editor 执行下面内容。把 ADMIN_USER_ID 替换成你的管理员用户 UUID。

create table if not exists public.game_content (
  id bigint primary key default 1 check (id = 1),
  question_bank jsonb not null,
  version bigint not null default 1,
  published_at timestamptz not null default now(),
  published_by uuid references auth.users(id)
);

alter table public.game_content enable row level security;

grant select on public.game_content to anon;
grant select, insert, update on public.game_content to authenticated;

create policy "anyone can read game content"
on public.game_content for select
to anon, authenticated
using (id = 1);

create policy "admin can insert game content"
on public.game_content for insert
to authenticated
with check (auth.uid() = 'ADMIN_USER_ID'::uuid and id = 1);

create policy "admin can update game content"
on public.game_content for update
to authenticated
using (auth.uid() = 'ADMIN_USER_ID'::uuid)
with check (auth.uid() = 'ADMIN_USER_ID'::uuid and id = 1);
请把手机横过来继续冒险
皖ICP备2026018030号