逗号教育接口文档--test

接口说明

所有接口调用均需采用POST方式,调用接口时均需POST默认参数:appkey,参数值默认均为:“123456”,默认参数appkey可配置,方便更换。
new--接口返回内容都包含三部分:ret(状态码),msg(返回信息说明),data(返回数据),所有正确返回的ret均为:"1"。
接口测试工具:点这里!点这里! Have a nice day !

1.3--版本更新

版本更新接口 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":""}

1.3--家长端

获得学生各类点赞的名称及数量 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字符串5post每页显示条目数量
offset字符串0post当前页面数据起始位置
liyou字符串00post理由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字符串5post每页显示条目数量
offset字符串0post当前页面数据起始位置
hzxueke字符串00post徽章学科
{"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字符串5post每页显示条目数量
offset字符串0post当前页面数据起始位置
hzxueke字符串00post徽章学科
{"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":""}

1.3--教师端

分等级查看学生数据情况 http://douhao.gamepku.com/index.php/js/cgstudentdata
参数名类型是否必须默认值请求方式说明
appkey字符串post应用密钥
classcode字符串post班级代码
limit字符串5post每页显示条目数量
offset字符串0post当前页面数据起始位置
grade字符串0post等级代码
{"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字符串5post每页显示条目数量
offset字符串0post当前页面数据起始位置
{"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字符串5post每页显示条目数量
offset字符串0post当前页面数据起始位置
liyou字符串0post理由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字符串5post每页显示条目数量
offset字符串0post当前页面数据起始位置
hzxueke字符串00post徽章学科
{"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字符串5post每页显示条目数量
offset字符串0post当前页面数据起始位置
hztype字符串0post徽章类型
hzxueke字符串00post徽章学科
{"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字符串5post每页显示条目数量
offset字符串0post当前页面数据起始位置
{"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":"进士"}}

1.2--家长端

家长获得验证码 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字符串5post每页显示条目数量
offset字符串0post当前页面数据起始位置
{"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字符串5post每页显示条目数量
offset字符串0post当前页面数据起始位置
{"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字符串5post每页显示条目数量
offset字符串0post当前页面数据起始位置
{"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"}]}}

1.2--教师端

教师获得验证码 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字符串5post每页显示条目数量
offset字符串0post当前页面数据起始位置
{"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字符串5post每页显示条目数量
offset字符串0post当前页面数据起始位置
{"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字符串5post每页显示条目数量
offset字符串0post当前页面数据起始位置
{"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"}
{"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"}
[]