chore:打印baseUrl

This commit is contained in:
李亮亮 2024-01-15 16:08:47 +08:00
parent 07db42a346
commit 92d0c302a5
1 changed files with 13 additions and 12 deletions

View File

@ -47,6 +47,7 @@ router.post('/checkToken', async (req : Request, env : Env) => {
// list image // list image
router.post('/list', auth, async (req: Request, env: Env) => { router.post('/list', auth, async (req: Request, env: Env) => {
const BASE_URL = await env.XK.get('BASE_URL') const BASE_URL = await env.XK.get('BASE_URL')
console.log("BASE_URL=" + BASE_URL)
const data = await req.json() as ImgReq const data = await req.json() as ImgReq
if (!data.limit) { if (!data.limit) {
data.limit = 10 data.limit = 10