Skip to content

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

3 Commits

Folders and files

Repository files navigation

拍照识货 · 仓储查询(Vercel + Supabase + Moonshot)

功能

  • 上传1-2张实拍图片
  • 调用 Moonshot Kimi 2.5 多模态识别
  • 查询 Supabase 并返回编号、价格、库位与库存
  • 管理员后台可配置 Moonshot 与数据 Supabase Key

必需环境变量(Vercel)

  • CONFIG_SUPABASE_URL
  • CONFIG_SUPABASE_SERVICE_ROLE_KEY
  • APP_SECRET
  • ADMIN_PASSWORD

说明:

  • CONFIG_SUPABASE_* 用于保存后台配置(加密存储)。
  • APP_SECRET 用于加密配置内容(至少 32 字符)。
  • ADMIN_PASSWORD 用于管理员后台登录。

Supabase 配置表

在 Supabase 执行:

create table if not exists app_config (
  id bigint primary key,
  encrypted_config text not null
);

数据表字段

  • product_id
  • product_name
  • spec_model
  • sale_price
  • purchase_price
  • location
  • stock_qty
  • remark
  • image_key

管理员后台

访问 /admin.html 输入:

  • Moonshot Base URL
  • Moonshot 模型名
  • Moonshot API Key
  • 数据 Supabase URL
  • 数据 Supabase Service Role Key

系统会将配置加密后写入 app_config。

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages