add 上传图片
This commit is contained in:
@@ -8,6 +8,18 @@ const {getMediaInfo} = require("../util/utils");
|
||||
const router = new Router()
|
||||
// const download = []
|
||||
|
||||
|
||||
router.get("/test", async (ctx) => {
|
||||
await utils.uploadImg('C:\\Users\\SummerTail\\Pictures\\Snipaste_2023-07-03_22-16-37.png')
|
||||
ctx.body = {
|
||||
code: 0,
|
||||
msg: "test",
|
||||
data: ''
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
|
||||
router.get("/getMediaInfo", async (ctx) => {
|
||||
let url = ctx.query.filePath
|
||||
let data
|
||||
@@ -50,14 +62,6 @@ router.get("/startDown", async (ctx) => {
|
||||
}
|
||||
})
|
||||
|
||||
router.get("/test", async (ctx) => {
|
||||
let rep = await utils.getTencentVideoPlayList('mzc00200t7i1qwp')
|
||||
ctx.body = {
|
||||
code: 0,
|
||||
msg: "test",
|
||||
data: rep
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
// 连接池
|
||||
|
||||
Reference in New Issue
Block a user