From ab14a4e0361d7236481489e69233f2a289545482 Mon Sep 17 00:00:00 2001 From: jks703 <409745752@qq.com> Date: Sat, 3 Jan 2026 20:02:36 +0800 Subject: [PATCH] Add .env file --- .env | 25 +++++++++++++++++++++++++ .gitignore | 2 +- 2 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 .env diff --git a/.env b/.env new file mode 100644 index 0000000..ed48ef3 --- /dev/null +++ b/.env @@ -0,0 +1,25 @@ +# 速创API配置 +API_KEY=G9rXx3Ag2Xfa7Gs8zou6t6HqeZ +API_BASE_URL=https://api.wuyinkeji.com + +# 生图接口 +GENERATE_API=/api/img/nanoBanana-pro + +# 查询接口(根据实际API文档调整) +QUERY_API=/api/img/query + +# 图片配置 +SOURCE_IMAGE_URL=https://test.fukit.cn/autoupload/fr/oRqOn_bHTFAUPpBiITHQh3601oMrbcl2K9AGanrQpheyl5f0KlZfm6UsKj-HyTuv/20260103/pnJi/1500X1998/P1191464.JPG +#https://your-image-host.com/P1191464.JPG +# 或者如果使用本地图片,需要先上传到图床服务 + +# 生成配置 +IMAGE_SIZE=2K +ASPECT_RATIO=1:1 + +# 查询间隔(毫秒) +QUERY_INTERVAL=10000 + +# 最大查询次数 +MAX_QUERY_COUNT=120 + diff --git a/.gitignore b/.gitignore index d89cdde..b8503d7 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,5 @@ node_modules/ -.env +#.env *.log .DS_Store img_2/*.jpg