[关闭]
@dooy 2019-07-10T07:58:11.000000Z 字数 4195 阅读 198

api 接口 批改网res

接口


一.接口

1.1常用GET变量

参数 类型 说明
a string 控制器
c string 控制器中的方法
uid int 用户UID,登录后的操作需要
token string 登录后的token 登录后必须

1.2约定

返回json总

  1. {
  2. data:{}, #返回数据 错误时候返回空
  3. error:0, #正常为0,不正常大于0为错误代码
  4. error_des:"" #错误提示
  5. }

登陆

  1. Url:
  2. http://open.pigai.org/?c=api&a=sentbase&action=login&key=SE9mpdwTPxyKGUvJb9vrVfYlwX803YcH&type=json
  3. post:
  4. {
  5. email:student,
  6. psw:258369,
  7. channel:''
  8. }

返回

  1. {
  2. "re": 1,
  3. "msg": "成功登陆",
  4. "userinfo": {
  5. "name": "张宇",
  6. "uid": "21",
  7. "school": "北京市第十二中学",
  8. "email": "student@jukuu.com",
  9. "teacher_or_student": "2",
  10. "user_name": "student",
  11. "head": {
  12. "s": "http://pic.pigai.org/upload/head/20181213/21.jpg",
  13. "b": "http://pic.pigai.org/upload/head/20181213/21.jpg"
  14. }
  15. },
  16. "minfo": {
  17. "user_id": "21", #个认UID 后面会用到
  18. "name": "张宇",
  19. "tel": "13408020591",
  20. "class": "英语b",
  21. "student_number": "123132131232121",
  22. "school": "北京市第十二中学",
  23. "request_cnt": "1735",
  24. "essay_cnt": "593",
  25. "stu_cnt": "-1",
  26. "rz": ",,,",
  27. "rz_info": "",
  28. "pigai_cnt": "59",
  29. "term_time": "0",
  30. "version_cnt": "9553",
  31. "zw": "0",
  32. "zw_info": "",
  33. "sex": "1",
  34. "tm": "2019-07-09 14:53:19",
  35. "is_yx": "0",
  36. "xq_hidden": "0",
  37. "dp_type": "0",
  38. "pf": "2012",
  39. "guestbook": "0",
  40. "home_qx": "0",
  41. "pigai_token": "a464efc6753b678d54a1665322afa134" #token 后续会后续会用到
  42. }
  43. }

注册

  1. URL:http://open.pigai.org/?c=api&a=yzmsj
  2. POST:{
  3. psw:258369,
  4. name:11,
  5. yzm_img;2178,
  6. tel:1234556678,
  7. yzm_sj:136462,
  8. repsw:258369,
  9. school:大连大学
  10. st:s,
  11. type:1,
  12. pwd:258369
  13. }

注册获取验证码:

  1. URL:
  2. http://open.pigai.org/?c=api&a=yzmsmssent&countrycode=86&type=1&tel=15501238706&yzm_img=2187

忘记密码:修改密码

  1. URL:
  2. http://open.pigai.org/?c=api&a=yzmsj
  3. POST:{
  4. tel:15501238706,
  5. yzm_sj:482920,
  6. pwd:123456,
  7. type:3
  8. }

作文列表

  1. URL:
  2. http://open.pigai.org/?c=api&a=essaylistbyuid&start=0&limit=10&uid=21&token=5c3de501ba49d14417125e8527a9155f

删除作文列表某一项:

  1. URL:http://open.pigai.org/?c=api&a=essayModifyType&eid=95437773&type=-1&uid=21&token=6bb34cde11c824ede55855f1149e5511
  2. get

修改用户信息:

  1. URL:http://open.pigai.org/?c=api&a=userModifyUinfo
  2. POST:{
  3. name:姓名,
  4. school:学校,
  5. student_number:1,
  6. class :sd,
  7. sex : 男,
  8. tel:888,
  9. }

用户VIP详情:

  1. URL:http://open.pigai.org/index.php?c=api&a=vip_info&uid=21&token=6bb34cde11c824ede55855f1149e5511
  2. GET

用户是否为VIP:

  1. URL:http://open.pigai.org/index.php?c=api&a=limit_info&uid=21&token=6bb34cde11c824ede55855f1149e5511
  2. get

作文详情-web:

  1. URL:http://open.pigai.org/index.php?c=v2&a=view&by=asc&_display=json&eid=95590302&uid=21&token=6bb34cde11c824ede55855f1149e5511

作文详情-app

  1. URL:http://open.pigai.org/?c=api&a=essayview&judian=1&eid=95590302&uid=21&token=6bb34cde11c824ede55855f1149e5511

写作页面-1:

  1. URL:http://open.pigai.org/?c=v2&a=view_dc&_display=json&rid=1412210&eid=95590302&uid=21&token=1bd66346b3ec77299c4a3d6e475cc614

写作页面-2:

  1. URL :http://open.pigai.org/?c=v2&a=write&_display=json&rid=1412210&eid=95590302&uid=21&token=1bd66346b3ec77299c4a3d6e475cc614

提交作文:

  1. URL:http://open.pigai.org/?c=ajax&a=postSave&_display=json&uid=21&token=1bd66346b3ec77299c4a3d6e475cc614
  2. post:{
  3. utContent:'English is a internationaly language which becomes importantly for modern world.
  4. In China, English is took to be a foreigh language which many student choosed to learn. They begin to studying English at a early age. They use at least one hour to learn English knowledges a day. Even kids in kindergarten have begun learning simple words. That's a good phenomenan, for English is essential nowaday,
  5. In addition to, some people think English is superior than Chinese. In me opinion, though English is for great significance, but English is after all a foreign language. it is hard for people to see eye to eye. English do help us read English original works, but Chinese helps us learn a true China. Only by characters Chinese literature can send off its brilliance. Learning a country's culture, especial its classic culture, the first thing is learn its language. Because of we are Chinese, why do we give up our mother tongue and learn our owne culture through a foreign language?',
  6. utTitle:'第1412210号 作文',
  7. rid:1412210,
  8. eid:95590302,
  9. stu_class:''
  10. }

分析作文 开始分析 提交到后端规定icomet:

  1. URL:http://open.pigai.org/?c=ajax&a=processStartIcomet&_display=json&uid=21&token=1bd66346b3ec77299c4a3d6e475cc614
  2. POST:{
  3. eid:95590302,
  4. icomet:pg_95590302_75497
  5. }

单句修改:

  1. URL:http://open.pigai.org/?c=ajax&a=save_snt_modify&_display=json&uid=21&token=38b7907f56814ff5ff789621edb44ec7
  2. POST:{
  3. s1:'English is a internationaly language which becomes importantly for modern world.',
  4. s2:'English is a internationaly language which becomes importantly for modern worlds.',
  5. essay_type:0
  6. k:'1412210_95590302_3_1.1_0'
  7. }
添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注