文档
测试

科普知识详情

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

请求参数

参数名
类型
描述
必填
id
int
科普知识ID
必填
openid
string
小程序openid
必填

响应参数

参数名
类型
描述
必填
state
int
1为成功,0为失败
必填
message
string
无信息为成功,失败则返回相应文本
必填
knowledge
object
科普知识详情
必填
id
string
知识ID
必填
title
string
知识标题
必填
content
string
知识内容(有html标签)
必填
imgpath
string
图片
必填
writertime
string
时间
必填
auther
string
作者
必填
is_favorite
string
是否收藏(1为收藏,0为未收藏)
必填

说明 / 示例

{ "state": "1", "message": "", "knowledge": { "id": "246", "title": "科普知识111", "content": "<p>科普知识111</p>", "imgpath": "https://oucschool.hqshop.club/upload/images/images/20200418/-1-200418223120077931.png", "writetime": "2020-04-18", "auther": "科普知识111", "is_favorite": "0" } }