文档
测试

科普知识

GET
https://oucschool.hqshop.club/api1.0/kepuzhishi.php

请求参数

参数名
类型
描述
必填
tid
int
分类ID,可为空,为空时获取推荐的分类
可选

响应参数

参数名
类型
描述
必填
state
int
1为成功,0为失败
必填
message
string
无信息为成功,失败则返回相应文本
必填
categories
array
分类
必填
tid
string
分类ID
必填
cname
string
分类名称
必填
current
array
当前分类的科普知识
必填
id
string
科普知识ID
必填
title
string
科普知识标题
必填
imgpath
string
图片
必填

说明 / 示例

{ "state": "1", "message": "", "categories": [ { "tid": "0", "indus_name": "推荐" }, { "id": "16", "cname": "科普知识" }, { "id": "17", "cname": "知识分类" } ], "current": [ { "id": "246", "title": "科普知识111", "imgpath": "https://oucschool.hqshop.club/upload/images/images/20200418/-1-200418223120077931.png" }, { "id": "247", "title": "科普知识222", "imgpath": "https://oucschool.hqshop.club/upload/images/images/20200419/-1-200419171733044651.png" } ] }