@dooy
2019-07-10T07:58:11.000000Z
字数 4195
阅读 198
接口
参数 | 类型 | 说明 |
---|---|---|
a | string | 控制器 |
c | string | 控制器中的方法 |
uid | int | 用户UID,登录后的操作需要 |
token | string | 登录后的token 登录后必须 |
返回json总
{
data:{}, #返回数据 错误时候返回空
error:0, #正常为0,不正常大于0为错误代码
error_des:"" #错误提示
}
Url:
http://open.pigai.org/?c=api&a=sentbase&action=login&key=SE9mpdwTPxyKGUvJb9vrVfYlwX803YcH&type=json
post:
{
email:student,
psw:258369,
channel:''
}
返回
{
"re": 1,
"msg": "成功登陆",
"userinfo": {
"name": "张宇",
"uid": "21",
"school": "北京市第十二中学",
"email": "student@jukuu.com",
"teacher_or_student": "2",
"user_name": "student",
"head": {
"s": "http://pic.pigai.org/upload/head/20181213/21.jpg",
"b": "http://pic.pigai.org/upload/head/20181213/21.jpg"
}
},
"minfo": {
"user_id": "21", #个认UID 后面会用到
"name": "张宇",
"tel": "13408020591",
"class": "英语b",
"student_number": "123132131232121",
"school": "北京市第十二中学",
"request_cnt": "1735",
"essay_cnt": "593",
"stu_cnt": "-1",
"rz": ",,,",
"rz_info": "",
"pigai_cnt": "59",
"term_time": "0",
"version_cnt": "9553",
"zw": "0",
"zw_info": "",
"sex": "1",
"tm": "2019-07-09 14:53:19",
"is_yx": "0",
"xq_hidden": "0",
"dp_type": "0",
"pf": "2012",
"guestbook": "0",
"home_qx": "0",
"pigai_token": "a464efc6753b678d54a1665322afa134" #token 后续会后续会用到
}
}
URL:http://open.pigai.org/?c=api&a=yzmsj
POST:{
psw:258369,
name:11,
yzm_img;2178,
tel:1234556678,
yzm_sj:136462,
repsw:258369,
school:大连大学
st:s,
type:1,
pwd:258369
}
URL:
http://open.pigai.org/?c=api&a=yzmsmssent&countrycode=86&type=1&tel=15501238706&yzm_img=2187
URL:
http://open.pigai.org/?c=api&a=yzmsj
POST:{
tel:15501238706,
yzm_sj:482920,
pwd:123456,
type:3
}
URL:
http://open.pigai.org/?c=api&a=essaylistbyuid&start=0&limit=10&uid=21&token=5c3de501ba49d14417125e8527a9155f
URL:http://open.pigai.org/?c=api&a=essayModifyType&eid=95437773&type=-1&uid=21&token=6bb34cde11c824ede55855f1149e5511
get
URL:http://open.pigai.org/?c=api&a=userModifyUinfo
POST:{
name:姓名,
school:学校,
student_number:1,
class :sd,
sex : 男,
tel:888,
}
URL:http://open.pigai.org/index.php?c=api&a=vip_info&uid=21&token=6bb34cde11c824ede55855f1149e5511
GET
URL:http://open.pigai.org/index.php?c=api&a=limit_info&uid=21&token=6bb34cde11c824ede55855f1149e5511
get
URL:http://open.pigai.org/index.php?c=v2&a=view&by=asc&_display=json&eid=95590302&uid=21&token=6bb34cde11c824ede55855f1149e5511
URL:http://open.pigai.org/?c=api&a=essayview&judian=1&eid=95590302&uid=21&token=6bb34cde11c824ede55855f1149e5511
URL:http://open.pigai.org/?c=v2&a=view_dc&_display=json&rid=1412210&eid=95590302&uid=21&token=1bd66346b3ec77299c4a3d6e475cc614
URL :http://open.pigai.org/?c=v2&a=write&_display=json&rid=1412210&eid=95590302&uid=21&token=1bd66346b3ec77299c4a3d6e475cc614
URL:http://open.pigai.org/?c=ajax&a=postSave&_display=json&uid=21&token=1bd66346b3ec77299c4a3d6e475cc614
post:{
utContent:'English is a internationaly language which becomes importantly for modern world.
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,
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?',
utTitle:'第1412210号 作文',
rid:1412210,
eid:95590302,
stu_class:''
}
URL:http://open.pigai.org/?c=ajax&a=processStartIcomet&_display=json&uid=21&token=1bd66346b3ec77299c4a3d6e475cc614
POST:{
eid:95590302,
icomet:pg_95590302_75497
}
URL:http://open.pigai.org/?c=ajax&a=save_snt_modify&_display=json&uid=21&token=38b7907f56814ff5ff789621edb44ec7
POST:{
s1:'English is a internationaly language which becomes importantly for modern world.',
s2:'English is a internationaly language which becomes importantly for modern worlds.',
essay_type:0
k:'1412210_95590302_3_1.1_0'
}