mixmoe / HibiAPI

一个实现了多种常用站点的易用化API的程序 / A program that implements easy-to-use APIs for a variety of commonly used sites.
https://api.obfs.dev
Apache License 2.0
548 stars 83 forks source link

TiebaAPI失效 #390

Closed donmor closed 1 year ago

donmor commented 1 year ago

请求:http://127.0.0.1:8080/api/tieba/post_list?tid=8292****54 返回:

{
  "url": "http://127.0.0.1:8080/api/tieba/post_list?tid=8292****54",
  "time": "2023-03-06T18:15:53.171300",
  "code": 422,
  "detail": "1 validation error for Request\nquery -> name\n  field required (type=value_error.missing)",
  "trace": null,
  "headers": {},
  "validation": [{
    "loc": ["query", "name"],
    "msg": "field required",
    "type": "value_error.missing"
  }]
}

目前任何tid都无法返回有效内容

mnixry commented 1 year ago

请求参数错误,其实你是有API文档可以看的 https://api.obfs.dev/docs/test#/Tieba

donmor commented 1 year ago

API改了吗?我之前写的脚本突然失效才发现的

mnixry commented 1 year ago

API改了吗?我之前写的脚本突然失效才发现的

可能改了但是我没有我改过这个的印象(

donmor commented 1 year ago

好家伙,返回的json格式改了海星😂

donmor commented 1 year ago

搞定了,话说200返回的json是贴吧服务器直出的吗

mnixry commented 1 year ago

搞定了,话说200返回的json是贴吧服务器直出的吗

是的