🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
**基本信息** 接口地址:`http[s]://api.12xue.com/material/addMaterials` 请求方式:`POST` 请求类型:`application/x-www-form-urlencoded` 响应类型:`json` **请求头** |参数名|必选|描述|默认值| |---|---|---|---| |Token|否|用户唯一token|-| |Source|是|客户端来源标识|-| |Version|是|客户端当前版本号|1.0.0| |Identity|否|用户角色|-| **参数** |参数名|必选|类型|描述|默认值| |---|---|---|---|---| |material|是|string|json编码后的素材信息|-| |material[0][schoolid]|是|string|学校id|-| |material[0][uid]|是|string|用户id|-| |material[0][fbrxm]|是|string|上传人的姓名|-| |material[0][jieid]|是|string||-| |material[0][xkid]|是|string||-| |material[0][njid]|是|string||-| |material[0][bbid]|是|string||-| |material[0][sxcid]|是|string||-| |material[0][dyid]|是|string||-| |material[0][title]|是|string|文章标题|-| |material[0][fxfw]|是|string|分享范围|-| |material[0][filesize]|是|string|文件大小|-| |material[0][savename]|是|string|七牛保存的文件名|-| |material[0][fl]|是|string|素材分类|-| |material[0][filetype]|是|string|素材后缀|-| |material[0][serverpath]|是|string|七牛域名|-| |material[0][sys_type]|是|string|上传的用户类型 固定位1|-| **返回示例** - success ```json { "ret": 0, "msg": "ok", "data": { "baseinfo": [ { "schoolid": "1033144472596497620", "uid": "1033145705652156254", "fbrxm": "校长", "areaid": 371402, "jieid": "143896", "xkid": "1071", "njid": "6167", "bbid": "143887", "sxcid": "143888", "dyid": "143890", "normalNum": "1", "dragNum": "0", "title": "近期吃瓜瓜汇总.pdf", "fxfw": 0, "filesize": "7174293", "savename": "o_1drq12rot1auct6f4271ke21hgm9.pdf", "fl": "2", "file_link": "近期吃瓜瓜汇总.pdf", "filetype": ".pdf", "filecode": "", "serverpath": "http://res-qiniu.12xue.com/", "is_convert": null, "fxd": 0, "sys_type": 4, "province": 370000, "city": 371400, "id": "1001157605300202315" } ], "zsdinfo": [], "point": { "data": { "gold": 3, "max": 0 }, "status": 1 }, "prestige": { "data": { "gold": 4, "max": 0 }, "status": 1 } } } ``` - error ```json { "ret": -1, "msg": "参数错误或者未定义" } ``` **返回参数说明** |参数名|类型|说明| |---|---|---| |ret |int |状态码 0:成功| |msg |string |状态消息 ok:成功| --: 该接口最后修订时间:2019-12-11 16:31:53 * * * * *