Skip to content

Commit ece57b5

Browse files
committed
Fix ...
1 parent 27c361c commit ece57b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/controllers/hitokoto.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ async function hitokoto (ctx, next) {
6363
categroy = categroy[Math.floor(Math.random() * categroy.length)]
6464
}
6565

66-
if (!Hitokoto.categroy[ctx.query.c]) {
66+
if (!Hitokoto.categroy[categroy]) {
6767
ctx.status = 404
6868
ctx.body = {
6969
status: 404,

0 commit comments

Comments
 (0)