所有接口调用均需采用POST方式,调用接口时均需POST默认参数:appkey,参数值默认均为:“123456”,默认参数appkey可配置,方便更换。
new--接口返回内容都包含三部分:ret(状态码),msg(返回信息说明),data(返回数据),所有正确返回的ret均为:"1"。
接口测试工具:点这里!点这里!
Have a nice day !
版本更新接口
http://douhao.gamepku.com/index.php/jz/version
参数名 类型 是否必须 默认值 请求方式 说明 appkey 字符串 是 post 应用密钥
type 字符串 是 post 客户端类型
version 字符串 是 post 版本号
qudao 字符串 是 post 渠道名
bao 字符串 是 post 包名
os 字符串 是 post 系统名
{"ret":"0","msg":"参数有误","data":""}
{"ret":"1","msg":"","data":{"id":"1","type":"jiaoshi","version":"1.3","qudao":"xiaomi","bao":"xiaomi.jiaoshi","os":"android","title":"1.3版本更新啦","content":"新增专项徽章","url":"www.baidu.com","updatetime":"2017-3-13 23:16"}}
{"ret":"2","msg":"已是最新版本","data":""}
获得学生各类点赞的名称及数量
http://douhao.gamepku.com/index.php/jz/sdznumber
参数名 类型 是否必须 默认值 请求方式 说明 appkey 字符串 是 post 应用密钥
studentid 字符串 是 post 学生代码
{"ret":"0","msg":"参数有误","data":""}
{"ret":"1","msg":"","data":{"z1":[{"liyou_id":"0","liyou_name":"全部","liyou_num":"14"},{"liyou_id":"1","liyou_name":"值日认真","liyou_num":"2"},{"liyou_id":"2","liyou_name":"坐姿端正","liyou_num":"0"},{"liyou_id":"3","liyou_name":"待人礼貌","liyou_num":"0"},{"liyou_id":"4","liyou_name":"维持卫生","liyou_num":"1"},{"liyou_id":"5","liyou_name":"团队合作","liyou_num":"0"},{"liyou_id":"6","liyou_name":"课堂积极","liyou_num":"0"},{"liyou_id":"7","liyou_name":"志愿服务","liyou_num":"0"},{"liyou_id":"8","liyou_name":"尊敬老师","liyou_num":"0"},{"liyou_id":"9","liyou_name":"热心助人","liyou_num":"0"},{"liyou_id":"10","liyou_name":"富有创意","liyou_num":"0"}]}}
获得学生各类专项徽章的名称及数量
http://douhao.gamepku.com/index.php/jz/szxnumber
参数名 类型 是否必须 默认值 请求方式 说明 appkey 字符串 是 post 应用密钥
studentid 字符串 是 post 学生代码
{"ret":"0","msg":"参数有误","data":""}
{"ret":"1","msg":"","data":{"8":[{"xueke_id":"00","xueke_name":"全部","xueke_num":"3"},{"xueke_id":"01","xueke_name":"专注","xueke_num":"0"},{"xueke_id":"02","xueke_name":"努力","xueke_num":"1"},{"xueke_id":"03","xueke_name":"安静","xueke_num":"2"},{"xueke_id":"04","xueke_name":"渊博","xueke_num":"0"}]}}
点赞列表
http://douhao.gamepku.com/index.php/jz/sdianzans
参数名 类型 是否必须 默认值 请求方式 说明 appkey 字符串 是 post 应用密钥
studentid 字符串 是 post 学生代码
limit 字符串 否 5 post 每页显示条目数量
offset 字符串 否 0 post 当前页面数据起始位置
liyou 字符串 否 00 post 理由id
{"ret":"0","msg":"参数有误","data":""}
{"ret":"1","msg":"","data":[{"dongtai_id":"54","dongtai_pic":"language.png","dongtai_type":"7","dongtai_title":"语言之星","dongtai_time":"2017-03-12","dongtai_ganxiestatus":"1","teacher_pic":"7ecbba43eb9eb6602d6c0e48f552b1e7.png","student_pic":"3553bf792674ce340296b92751617a91.jpg","student_name":"红领巾","student_pid":"000100008"},{"dongtai_id":"49","dongtai_pic":"language.png","dongtai_type":"7","dongtai_title":"语言之星","dongtai_time":"2017-03-09","dongtai_ganxiestatus":"1","teacher_pic":"7ecbba43eb9eb6602d6c0e48f552b1e7.png","student_pic":"3553bf792674ce340296b92751617a91.jpg","student_name":"红领巾","student_pid":"000100008"}]}
专项勋章列表
http://douhao.gamepku.com/index.php/jz/szhuanxiangs
参数名 类型 是否必须 默认值 请求方式 说明 appkey 字符串 是 post 应用密钥
studentid 字符串 是 post 学生代码
limit 字符串 否 5 post 每页显示条目数量
offset 字符串 否 0 post 当前页面数据起始位置
hzxueke 字符串 否 00 post 徽章学科
{"ret":"0","msg":"参数有误","data":""}
{"ret":"1","msg":"","data":[{"dongtai_id":"54","dongtai_pic":"language.png","dongtai_type":"7","dongtai_title":"语言之星","dongtai_time":"2017-03-12","dongtai_ganxiestatus":"1","teacher_pic":"7ecbba43eb9eb6602d6c0e48f552b1e7.png","student_pic":"3553bf792674ce340296b92751617a91.jpg","student_name":"红领巾","student_pid":"000100008"},{"dongtai_id":"49","dongtai_pic":"language.png","dongtai_type":"7","dongtai_title":"语言之星","dongtai_time":"2017-03-09","dongtai_ganxiestatus":"1","teacher_pic":"7ecbba43eb9eb6602d6c0e48f552b1e7.png","student_pic":"3553bf792674ce340296b92751617a91.jpg","student_name":"红领巾","student_pid":"000100008"}]}
家长勋章列表
http://douhao.gamepku.com/index.php/jz/shuizhangs
参数名 类型 是否必须 默认值 请求方式 说明 appkey 字符串 是 post 应用密钥
studentid 字符串 是 post 学生代码
limit 字符串 否 5 post 每页显示条目数量
offset 字符串 否 0 post 当前页面数据起始位置
hzxueke 字符串 否 00 post 徽章学科
{"ret":"0","msg":"参数有误","data":""}
{"ret":"1","msg":"","data":[{"dongtai_id":"54","dongtai_pic":"language.png","dongtai_type":"7","dongtai_title":"语言之星","dongtai_time":"2017-03-12","dongtai_ganxiestatus":"1","teacher_pic":"7ecbba43eb9eb6602d6c0e48f552b1e7.png","student_pic":"3553bf792674ce340296b92751617a91.jpg","student_name":"红领巾","student_pid":"000100008"},{"dongtai_id":"49","dongtai_pic":"language.png","dongtai_type":"7","dongtai_title":"语言之星","dongtai_time":"2017-03-09","dongtai_ganxiestatus":"1","teacher_pic":"7ecbba43eb9eb6602d6c0e48f552b1e7.png","student_pic":"3553bf792674ce340296b92751617a91.jpg","student_name":"红领巾","student_pid":"000100008"}]}
获得学生各类徽章的名称及数量
http://douhao.gamepku.com/index.php/jz/shznumber
参数名 类型 是否必须 默认值 请求方式 说明 appkey 字符串 是 post 应用密钥
studentid 字符串 是 post 学生代码
{"ret":"0","msg":"参数有误","data":""}
{"ret":"1","msg":"","data":[{"type_id":0,"type_name":"全部","type_xueke":[{"xueke_id":"00","xueke_name":"全部","xueke_num":"28"},{"xueke_id":"01","xueke_name":"语文","xueke_num":"5"},{"xueke_id":"02","xueke_name":"数学","xueke_num":"17"},{"xueke_id":"03","xueke_name":"英语","xueke_num":"1"},{"xueke_id":"04","xueke_name":"体育","xueke_num":"0"},{"xueke_id":"05","xueke_name":"音乐","xueke_num":"0"},{"xueke_id":"06","xueke_name":"美术","xueke_num":"0"},{"xueke_id":"07","xueke_name":"写字","xueke_num":"0"},{"xueke_id":"08","xueke_name":"品德","xueke_num":"2"},{"xueke_id":"09","xueke_name":"科学","xueke_num":"0"},{"xueke_id":10,"xueke_name":"舞蹈","xueke_num":"0"},{"xueke_id":11,"xueke_name":"信息","xueke_num":"0"},{"xueke_id":12,"xueke_name":"研究性学习","xueke_num":"0"},{"xueke_id":13,"xueke_name":"心理健康","xueke_num":"0"},{"xueke_id":14,"xueke_name":"劳动","xueke_num":"0"}]},{"type_id":3,"type_name":"品德之星","type_xueke":[{"xueke_id":"00","xueke_name":"全部","xueke_num":"2"},{"xueke_id":"08","xueke_name":"品德","xueke_num":"2"}]},{"type_id":4,"type_name":"科学之星","type_xueke":[{"xueke_id":"00","xueke_name":"全部","xueke_num":"17"},{"xueke_id":"02","xueke_name":"数学","xueke_num":"17"},{"xueke_id":"09","xueke_name":"科学","xueke_num":"0"},{"xueke_id":11,"xueke_name":"信息","xueke_num":"0"},{"xueke_id":12,"xueke_name":"研究性学习","xueke_num":"0"},{"xueke_id":14,"xueke_name":"劳动","xueke_num":"0"}]},{"type_id":5,"type_name":"艺术之星","type_xueke":[{"xueke_id":"00","xueke_name":"全部","xueke_num":"0"},{"xueke_id":"05","xueke_name":"音乐","xueke_num":"0"},{"xueke_id":"06","xueke_name":"美术","xueke_num":"0"},{"xueke_id":"07","xueke_name":"写字","xueke_num":"0"},{"xueke_id":10,"xueke_name":"舞蹈","xueke_num":"0"}]},{"type_id":6,"type_name":"运动之星","type_xueke":[{"xueke_id":"00","xueke_name":"全部","xueke_num":"0"},{"xueke_id":"04","xueke_name":"体育","xueke_num":"0"},{"xueke_id":13,"xueke_name":"心理健康","xueke_num":"0"}]},{"type_id":7,"type_name":"语言之星","type_xueke":[{"xueke_id":"00","xueke_name":"全部","xueke_num":"3"},{"xueke_id":"01","xueke_name":"语文","xueke_num":"2"},{"xueke_id":"03","xueke_name":"英语","xueke_num":"1"}]}]}
获取学生点赞,勋章,等级,评语
http://douhao.gamepku.com/index.php/jz/getdata
参数名 类型 是否必须 默认值 请求方式 说明 appkey 字符串 是 post 应用密钥
studentid 字符串 是 post 学生id
{"ret":"0","msg":"参数有误","data":""}
{"ret":"1","msg":"","data":{"dianzan":"9","huizhang":"23","dengji":"举人","sum":"24","pingyu":"红领巾,最近很积极哦,给你点个赞!","updatetime":"2017-03-12 02:26:41","zhuanxiang":"2"}}
{"ret":"2","msg":"学生ID不存在","data":""}
扫描徽章
http://douhao.gamepku.com/index.php/jz/scoring
参数名 类型 是否必须 默认值 请求方式 说明
appkey 字符串 是 post 应用密钥
studentid 字符串 是 post 学生id
qrcode 字符串 是 post 二维码id
{"ret":"0","msg":"参数有误","data":""}
{"ret":"1","msg":"","data":{"type":"3","value":"1"}}
{"ret":"2","msg":"二维码不存在","data":""}
{"ret":"3","msg":"失效的二维码","data":""}
分等级查看学生数据情况
http://douhao.gamepku.com/index.php/js/cgstudentdata
参数名 类型 是否必须 默认值 请求方式 说明 appkey 字符串 是 post 应用密钥
classcode 字符串 是 post 班级代码
limit 字符串 否 5 post 每页显示条目数量
offset 字符串 否 0 post 当前页面数据起始位置
grade 字符串 否 0 post 等级代码
{"ret":"0","msg":"参数有误","data":""}
{"ret":"1","msg":"","data":[{"name":"红领巾","img":"3553bf792674ce340296b92751617a91.jpg","pid":"000100008","score":"9","badge":"21","grade":"举人","scoresum":"21","pingyu":"红领巾,最近很积极哦,给你点个赞!"}]}
班级感谢列表页
http://douhao.gamepku.com/index.php/js/cganxies
参数名 类型 是否必须 默认值 请求方式 说明 appkey 字符串 是 post 应用密钥
classcode 字符串 是 post 班级代码
limit 字符串 否 5 post 每页显示条目数量
offset 字符串 否 0 post 当前页面数据起始位置
{"ret":"0","msg":"参数有误","data":""}
{"ret":"1","msg":"","data":[{"dongtai_id":"3","dongtai_title":"感谢了nan老师","student_pic":"3553bf792674ce340296b92751617a91.jpg","student_name":"红领巾","ganxie_time":""}]}
班级点赞列表页
http://douhao.gamepku.com/index.php/js/cdianzans
参数名 类型 是否必须 默认值 请求方式 说明 appkey 字符串 是 post 应用密钥
classcode 字符串 是 post 班级代码
limit 字符串 否 5 post 每页显示条目数量
offset 字符串 否 0 post 当前页面数据起始位置
liyou 字符串 否 0 post 理由id
{"ret":"0","msg":"参数有误","data":""}
{"ret":"1","msg":"","data":[{"dongtai_id":"6","dongtai_pic":"z1.png","dongtai_type":"z1","dongtai_title":"维持卫生","dongtai_time":"2017-02-19","dongtai_ganxiestatus":"1","teacher_pic":null,"student_pic":"3553bf792674ce340296b92751617a91.jpg","student_name":"红领巾","student_pid":"000100008"}]}
获得班级各种点赞的代码及数量
http://douhao.gamepku.com/index.php/js/cdianzannumber
参数名 类型 是否必须 默认值 请求方式 说明 appkey 字符串 是 post 应用密钥
classcode 字符串 是 post 班级代码
{"ret":"0","msg":"参数有误","data":""}
班级专项勋章列表页
http://douhao.gamepku.com/index.php/js/czhuanxiangs
参数名 类型 是否必须 默认值 请求方式 说明 appkey 字符串 是 post 应用密钥
classcode 字符串 是 post 班级代码
limit 字符串 否 5 post 每页显示条目数量
offset 字符串 否 0 post 当前页面数据起始位置
hzxueke 字符串 否 00 post 徽章学科
{"ret":"0","msg":"参数有误","data":""}
{"ret":"1","msg":"","data":[{"dongtai_id":"52","dongtai_pic":"z1.png","dongtai_type":"8","dongtai_title":"未知勋章","dongtai_time":"2017-03-09","dongtai_ganxiestatus":"1","teacher_pic":"7ecbba43eb9eb6602d6c0e48f552b1e7.png","student_pic":"3553bf792674ce340296b92751617a91.jpg","student_name":"红领巾","student_pid":"000100008"}]}
获得班级各类专项徽章数量
http://douhao.gamepku.com/index.php/js/czxnumber
参数名 类型 是否必须 默认值 请求方式 说明 appkey 字符串 是 post 应用密钥
classcode 字符串 是 post 班级代码
{"ret":"0","msg":"参数有误","data":""}
{"ret":"1","msg":"","data":{"8":{"00":"1","01":"0","02":"0","03":"1","04":"0"}}}
获得班级各类徽章的名称及数量
http://douhao.gamepku.com/index.php/js/chznumber
参数名 类型 是否必须 默认值 请求方式 说明 appkey 字符串 是 post 应用密钥
classcode 字符串 是 post 班级代码
{"ret":"0","msg":"参数有误","data":""}
{"ret":"1","msg":"","data":{"0":{"00":"27","01":"27","02":"27","03":"27","04":"27","05":"27","06":"27","07":"27","08":"27","09":"27","10":"27","11":"27","12":"27","13":"27","14":"27"},"2":{"00":"0","01":"0","02":"0","03":"0","04":"0","05":"0","06":"0","07":"0","08":"0","09":"0","10":"0","11":"0","12":"0","13":"0","14":"0"},"3":{"00":"2","01":"0","02":"0","03":"0","04":"0","05":"0","06":"0","07":"0","08":"2","09":"0","10":"0","11":"0","12":"0","13":"0","14":"0"},"4":{"00":"18","01":"0","02":"16","03":"2","04":"0","05":"0","06":"0","07":"0","08":"0","09":"0","10":"0","11":"0","12":"0","13":"0","14":"0"},"5":{"00":"0","01":"0","02":"0","03":"0","04":"0","05":"0","06":"0","07":"0","08":"0","09":"0","10":"0","11":"0","12":"0","13":"0","14":"0"},"6":{"00":"0","01":"0","02":"0","03":"0","04":"0","05":"0","06":"0","07":"0","08":"0","09":"0","10":"0","11":"0","12":"0","13":"0","14":"0"},"7":{"00":"1","01":"1","02":"0","03":"0","04":"0","05":"0","06":"0","07":"0","08":"0","09":"0","10":"0","11":"0","12":"0","13":"0","14":"0"}}}
班级勋章列表页
http://douhao.gamepku.com/index.php/js/chuizhangs
参数名 类型 是否必须 默认值 请求方式 说明 appkey 字符串 是 post 应用密钥
classcode 字符串 是 post 班级代码
limit 字符串 否 5 post 每页显示条目数量
offset 字符串 否 0 post 当前页面数据起始位置
hztype 字符串 否 0 post 徽章类型
hzxueke 字符串 否 00 post 徽章学科
{"ret":"0","msg":"参数有误","data":""}
{"ret":"1","msg":"","data":[{"dongtai_id":"49","dongtai_pic":"language.png","dongtai_type":"7","dongtai_title":"语言之星","dongtai_time":"2017-03-09","dongtai_ganxiestatus":"1","teacher_pic":"7ecbba43eb9eb6602d6c0e48f552b1e7.png","student_pic":"3553bf792674ce340296b92751617a91.jpg","student_name":"红领巾","student_pid":"000100008"}]}
获得教师所关联的班级
http://douhao.gamepku.com/index.php/js/getlink
参数名 类型 是否必须 默认值 请求方式 说明
appkey 字符串 是 post 应用密钥
teacherphone 字符串 是 post 教师电话
limit 字符串 否 5 post 每页显示条目数量
offset 字符串 否 0 post 当前页面数据起始位置
{"ret":"0","msg":"参数有误","data":""}
{"ret":"1","msg":"","data":""}
{"ret":"2","msg":"无关联班级","data":""}
班级数据
http://douhao.gamepku.com/index.php/js/classdata
参数名 类型 是否必须 默认值 请求方式 说明 appkey 字符串 是 post 应用密钥
classcode 字符串 是 post 班级代码
teacherphone 字符串 是 post 教师电话
{"ret":"0","msg":"参数有误","data":""}
{"ret":"1","msg":"","data":{"teacher_xueke":"数学","teacher_pic":"7ecbba43eb9eb6602d6c0e48f552b1e7.png","class_name":"9年级1班","classpic":"classpic.jpg","class_ranking":"1","class_badge":"22","class_zhuanxiang":"2","class_dianzan":"9","class_ganxie":"","class_grade_1":"1","class_grade_2":"0","class_grade_3":"1","class_grade_4":"0","class_grade_5":"0","grade_1_name":"童生","grade_2_name":"秀才","grade_3_name":"举人","grade_4_name":"贡生","grade_5_name":"进士"}}
家长获得验证码
http://douhao.gamepku.com/dayumg/jzsendmsg.php
参数名 类型 是否必须 默认值 请求方式 说明
appkey 字符串 是 post 应用密钥
phone 字符串 是 post 家长电话
{"ret":"0","msg":"参数有误","data":""}
{"ret":"1","msg":"发送成功","data":""}
{"ret":"2","msg":"错误,请重新获取","data":""}
{"ret":"3","msg":"错误,请重新获取","data":""}
家长登录
http://douhao.gamepku.com/index.php/jz/login
参数名 类型 是否必须 默认值 请求方式 说明
appkey 字符串 是 post 应用密钥
jzphone 字符串 是 post 家长电话
yzm 字符串 是 post 验证码
{"ret":"0","msg":"参数有误","data":""}
{"ret":"1","msg":"登录成功","data":""}
{"ret":"2","msg":"用户不存在","data":""}
{"ret":"3","msg":"验证码过期,请重新获取","data":""}
{"ret":"4","msg":"验证码错误,请重新输入","data":""}
感谢
http://douhao.gamepku.com/index.php/jz/ganxie
参数名 类型 是否必须 默认值 请求方式 说明
appkey 字符串 是 post 应用密钥
dongtaiid 字符串 是 post 动态id
{"ret":"0","msg":"参数有误","data":""}
{"ret":"1","msg":"更新成功","data":""}
{"ret":"2","msg":"动态ID不存在","data":""}
{"ret":"3","msg":"更新失败","data":""}
{"ret":"4","msg":"动态已感谢,刷新即可","data":""}
最新动态
http://douhao.gamepku.com/index.php/jz/zxdt
参数名 类型 是否必须 默认值 请求方式 说明
appkey 字符串 是 post 应用密钥
studentid 字符串 是 post 学生id
limit 字符串 否 5 post 每页显示条目数量
offset 字符串 否 0 post 当前页面数据起始位置
{"ret":"0","msg":"参数有误","data":""}
{"ret":"1","msg":"","data":[{"dongtai_id":"36","dongtai_pic":"science.png","dongtai_type":"4","dongtai_title":"奖励科学之星","dongtai_time":"2017-02-19","dongtai_ganxiestatus":"1","teacher_pic":null,"teacher_name":null}]}
点赞页面
http://douhao.gamepku.com/index.php/jz/dianzan
参数名 类型 是否必须 默认值 请求方式 说明
appkey 字符串 是 post 应用密钥
studentid 字符串 是 post 学生id
limit 字符串 否 5 post 每页显示条目数量
offset 字符串 否 0 post 当前页面数据起始位置
{"ret":"0","msg":"参数有误","data":""}
{"ret":"1","msg":"","data":{"num":{"dianzan":"1"},"content":[{"dongtai_id":"46","dongtai_pic":"z1.png","dongtai_title":"0,点赞","dongtai_time":"2017-02-19","dongtai_ganxiestatus":"1"}]}}
徽章页面
http://douhao.gamepku.com/index.php/jz/huizhang
参数名 类型 是否必须 默认值 请求方式 说明
appkey 字符串 是 post 应用密钥
studentid 字符串 是 post 学生id
limit 字符串 否 5 post 每页显示条目数量
offset 字符串 否 0 post 当前页面数据起始位置
{"ret":"0","msg":"参数有误","data":""}
{"ret":"1","msg":"","data":{"num":{"yundong":"0","pinde":"0","yishu":"0","yuyan":"2","kexue":"0"},"content":[{"dongtai_id":"36","dongtai_pic":"science.png","dongtai_title":"nan奖励科学之星","dongtai_time":"2017-02-19","dongtai_ganxiestatus":"1"},{"dongtai_id":"35","dongtai_pic":"science.png","dongtai_title":"奖励科学之星","dongtai_time":"2017-02-12 22:53:46","dongtai_ganxiestatus":"1"}]}}
教师获得验证码
http://douhao.gamepku.com/dayumg/jssendmsg.php
参数名 类型 是否必须 默认值 请求方式 说明
appkey 字符串 是 post 应用密钥
phone 字符串 是 post 教师电话
{"ret":"0","msg":"参数有误","data":""}
{"ret":"1","msg":"发送成功","data":""}
{"ret":"2","msg":"您的教师账号不存在","data":""}
{"ret":"3","msg":"错误,请重新获取","data":""}
{"ret":"4","msg":"错误,请重新获取","data":""}
教师登录
http://douhao.gamepku.com/index.php/js/login
参数名 类型 是否必须 默认值 请求方式 说明
appkey 字符串 是 post 应用密钥
teacherphone 字符串 是 post 教师电话
yzm 字符串 是 post 验证码
{"ret":"0","msg":"参数有误","data":""}
{"ret":"1","msg":"登录成功","data":""}
{"ret":"2","msg":"用户不存在","data":""}
{"ret":"3","msg":"验证码过期,请重新获取","data":""}
{"ret":"4","msg":"验证码错误,请重新输入","data":""}
教师关联班级
http://douhao.gamepku.com/index.php/js/linkclass
参数名 类型 是否必须 默认值 请求方式 说明
appkey 字符串 是 post 应用密钥
classcode 字符串 是 post 班级代码
teacherphone 字符串 是 post 教师电话
{"ret":"0","msg":"参数有误","data":""}
{"ret":"1","msg":"关联成功","data":""}
{"ret":"2","msg":"已关联","data":""}
获取点赞理由
http://douhao.gamepku.com/index.php/js/dzliyou
参数名 类型 是否必须 默认值 请求方式 说明
appkey 字符串 是 post 应用密钥
{"ret":"0","msg":"参数有误","data":""}
{"ret":"1","msg":"","data":[{"id":"1","title":"值日认真"},{"id":"2","title":"坐姿端正"},{"id":"3","title":"待人礼貌"},{"id":"4","title":"维持卫生"},{"id":"5","title":"团队合作"},{"id":"6","title":"课堂积极"}]}
待查看消息条数
http://douhao.gamepku.com/index.php/js/zxtongzhi
参数名 类型 是否必须 默认值 请求方式 说明
appkey 字符串 是 post 应用密钥
classcode 字符串 是 post 班级代码
{"ret":"0","msg":"参数有误","data":""}
{"ret":"1","msg":"","data":{"zxtongzhi_num":"1"}}
通知信息列表
http://douhao.gamepku.com/index.php/js/tongzhi
参数名 类型 是否必须 默认值 请求方式 说明
appkey 字符串 是 post 应用密钥
classcode 字符串 是 post 班级代码
limit 字符串 否 5 post 每页显示条目数量
offset 字符串 否 0 post 当前页面数据起始位置
{"ret":"0","msg":"参数有误","data":""}
{"ret":"1","msg":"","data":[{"tongzhi_id":"34","tongzhi_studentimg":"c8d573fe8af3f577c241ab016aa44c3f.jpg","tongzhi_studentname":"王二小","tongzhi_ganxietime":"2017-2-12"}]}
教师上传头像
http://douhao.gamepku.com/index.php/js/timg
上传测试工具:点这里!点这里!
参数名 类型 是否必须 默认值 请求方式 说明
appkey 字符串 是 post 应用密钥
teacherphone 字符串 是 post 教师电话号码
userfile 文件对象 是 post 图片文件
{"ret":"0","msg":"参数有误","data":""}
{"ret":"1","msg":"更新数据条数:1","data":{"img":"7ecbba43eb9eb6602d6c0e48f552b1e7.png"}}
{"ret":"2","msg":"图片上传错误","data":""}
点赞
http://douhao.gamepku.com/index.php/js/dianzan
参数名 类型 是否必须 默认值 请求方式 说明 appkey 字符串 是 post 应用密钥
teacherphone 字符串 是 post 教师电话
studentid 字符串 是 post 学生id
liyou 字符串 是 post 点赞理由类型
{"ret":"0","msg":"参数有误","data":""}
{"ret":"1","msg":"成功点赞","data":""}
班级最新动态
http://douhao.gamepku.com/index.php/js/classzxdt
参数名 类型 是否必须 默认值 请求方式 说明 appkey 字符串 是 post 应用密钥
classcode 字符串 是 post 班级代码
limit 字符串 否 5 post 每页显示条目数量
offset 字符串 否 0 post 当前页面数据起始位置
{"ret":"0","msg":"参数有误","data":""}
{"ret":"1","msg":"","data":[{"dongtai_id":"2","dongtai_pic":"z1.png","dongtai_type":"z1","dongtai_title":"团队合作","dongtai_time":"2017-02-19","dongtai_ganxiestatus":"2","teacher_pic":null,"student_pic":"c8d573fe8af3f577c241ab016aa44c3f.jpg","student_name":"王二小","student_pid":"000100001"}]}
查询班级学生信息(个人及积分)
http://douhao.gamepku.com/index.php/js/cstudents
参数名 类型 是否必须 默认值 请求方式 说明 appkey 字符串 是 post 应用密钥
classcode 字符串 是 post 班级代码
limit 字符串 否 5 post 每页显示条目数量
offset 字符串 否 0 post 当前页面数据起始位置
{"ret":"0","msg":"参数有误","data":""}
{"ret":"1","msg":"","data":[{"name":"王二小","img":"c8d573fe8af3f577c241ab016aa44c3f.jpg","pid":"000100002","score":"6","badge":"10","grade":"贡生","scoresum":"36","pingyu":"王二小,最近表现很活跃,值得肯定!"}]}
{"result":0,"error":"错误,请重新获取"}
{"result":1,"error":""}
{"result":"1","error":""}
{"result":"2","error":"验证码错误,请重新输入"}
{"result":"3","error":"用户不存在"}
{"result":"1","error":"关联成功"}
{"result":"0","error":"该数据已关联"}
[{"teacherphone":"13269969063","classcode":"001","class_name":"8年级1班","updatetime":""}]
[]
{"id":"1","phone":"1","name":"","phoneyzm":"645677","updatetime":""}
null
{"id":"1","name":"8年级1班","schoolid":"1","classpic":"classpic.jpg","score":"9","school_name":"北大附中"}
{"id":null,"name":null,"schoolid":null,"classpic":"classpic.jpg","score":null,"school_name":null}
{"affected_rows":1,"phone":"1","classcode":"1234"}
{"affected_rows":0,"phone":"1","classcode":"1234"}
[{"id":"2","name":"王二小","img":"c8d573fe8af3f577c241ab016aa44c3f.jpg","pid":"000100002","score":"6","badge":"8","grade":"秀才"},{"id":"1","name":"小明","img":"457c55102b86c12310c3b5f069163fa7.png","pid":"000100001","score":"18","badge":"2","grade":"秀才"}]
[]
{"class_name":"8年级1班","classpic":"classpic.jpg","class_ranking":"1","class_score":"24","class_badge":"10","class_grade_1":"0","class_grade_2":"2","class_grade_3":"0","class_grade_4":"0","class_grade_5":"0","grade_1_name":"童生","grade_2_name":"秀才","grade_3_name":"举人","grade_4_name":"贡生","grade_5_name":"进士"}
{"class_name":null,"classpic":"classpic.jpg","class_ranking":"0","class_score":"0","class_badge":"0","class_grade_1":"0","class_grade_2":"0","class_grade_3":"0","class_grade_4":"0","class_grade_5":"0","grade_1_name":"童生","grade_2_name":"秀才","grade_3_name":"举人","grade_4_name":"贡生","grade_5_name":"进士"}
{"result":0,"error":"错误,请重新获取"}
{"result":1,"error":""}
{"result":"1","error":""}
{"result":"2","error":"验证码错误,请重新输入"}
{"result":"3","error":"用户不存在"}
[{"id":"2","parentid":"1","studentid":"000100002","linktime":"2016-12-30 01:24:25"}]
[]
{"result":"1","error":"关联成功"}
{"result":"0","error":"该数据已关联"}
{"affected_rows":1,"phone":"1","student":"1234"}
{"affected_rows":0,"phone":"1","student":"1234"}
上传图片:/index.php/files/index/$studentpid
post参数:
'userfile'
{"affected_rows":1,"img":"e6d940ca18264e24d8af2d458000a256.png"}
{"affected_rows":0,"img":"e6d940ca18264e24d8af2d458000a256.png"}
{"error":"The filetype you are attempting to upload is not allowed."}
{"status":"1","type":"1","value":1}
statu:1 代表扫码成功, type:1 代表积分2是徽章, value:加的分值
{"status":"0","type":"","value":""}
{"status":"2","type":"","value":""}
[{"pid":"000100001","name":"小明","school_name":"北大附中","class_id":"1","class_name":"8年级1班","img":"457c55102b86c12310c3b5f069163fa7.png"}]
[]
{"score":"18","grade":"秀才","badge":"2","pingyu":"小明,最近表现很活跃,值得肯定!","updatetime":"2017-01-08 19:09:35"}
[]