diff --git a/routes/shepherd/pin.js b/routes/shepherd/pin.js index 6af5bf4..1a17e6e 100644 --- a/routes/shepherd/pin.js +++ b/routes/shepherd/pin.js @@ -146,7 +146,7 @@ module.exports = (shepherd) => { }); shepherd.get('/getpinlist', (req, res, next) => { - if (shepherd.checkToken(req.body.token)) { + if (shepherd.checkToken(req.query.token)) { if (fs.existsSync(`${shepherd.agamaDir}/shepherd/pin`)) { fs.readdir(`${shepherd.agamaDir}/shepherd/pin`, (err, items) => { let _pins = [];