小幸文案素材库API

小幸文案素材库API


创建订单

{"info":{"from":"runapi","type":"api","title":"","description":"创建订单","method":"post","url":"http://localhost:8500/wechat/createOrder","remark":"返回码 code 说明:\n200:正常\n400:客户端异常\n500:服务端异常","apiStatus":"0"},"request":{"params":{"mode":"json","urlencoded":[{"name":"","type":"string","value":"","require":"1","remark":""}],"formdata":[{"name":"","type":"string","value":"","require":"1","remark":""}],"json":"{\n \"totalFee\": 100\n}","jsonDesc":[{"name":"totalFee","type":"string","remark":"金额(单位:元)","value":"","require":"1"}]},"headers":[{"name":"userId","type":"string","value":"6413","require":"1","remark":"用户ID","disable":"0"},{"name":"miniCode","type":"string","value":"prodkdsck","require":"1","remark":"小程序标识","disable":"0"}],"cookies":[{"name":"","value":""}],"auth":[],"query":[],"pathVariable":[]},"response":{"responseText":"{\n \"data\": {\n \"order\": {\n \"appId\": \"wx69f32166a3eba945\",\n \"nonceStr\": \"FX4sKiEAXoYXZcUe\",\n \"packageValue\": \"prepay_id=wx311153590340197b8d00f3d3d547a70000\",\n \"paySign\": \"0E6619D84679A281025EA552E190DF7C\",\n \"signType\": \"MD5\",\n \"timeStamp\": \"1648698830\"\n }\n },\n \"head\": {\n \"code\": 200,\n \"msg\": \"成功\"\n }\n}","responseOriginal":{"data":{"order":{"appId":"wx69f32166a3eba945","nonceStr":"FX4sKiEAXoYXZcUe","packageValue":"prepay_id=wx311153590340197b8d00f3d3d547a70000","paySign":"0E6619D84679A281025EA552E190DF7C","signType":"MD5","timeStamp":"1648698830"}},"head":{"code":200,"msg":"成功"}},"responseExample":"{\n \"data\": {\n \"order\": {\n \"appId\": \"wx69f32166a3eba945\",\n \"nonceStr\": \"FX4sKiEAXoYXZcUe\",\n \"packageValue\": \"prepay_id=wx311153590340197b8d00f3d3d547a70000\",\n \"paySign\": \"0E6619D84679A281025EA552E190DF7C\",\n \"signType\": \"MD5\",\n \"timeStamp\": \"1648698830\"\n }\n },\n \"head\": {\n \"code\": 200,\n \"msg\": \"成功\"\n }\n}","responseHeader":{"access-control-allow-origin":"*","content-length":"265","content-type":"application/json;charset=UTF-8","date":"Thu, 31 Mar 2022 03:54:09 GMT","vary":"Origin, Access-Control-Request-Method, Access-Control-Request-Headers"},"responseStatus":200,"responseParamsDesc":[{"name":"data","type":"object","remark":"数据"},{"name":"order","type":"object","remark":"预支付订单信息"},{"name":"order.appId","type":"string","remark":"小程序 appId"},{"name":"order.nonceStr","type":"string","remark":"随机字符串,长度为32个字符以下"},{"name":"order.packageValue","type":"string","remark":"统一下单接口返回的 prepay_id 参数值,提交格式如:prepay_id=***"},{"name":"order.paySign","type":"string","remark":"签名"},{"name":"order.signType","type":"string","remark":"签名算法,应与后台下单时的值一致"},{"name":"order.timeStamp","type":"string","remark":"时间戳,从 1970 年 1 月 1 日 00:00:00 至今的秒数,即当前的时间"},{"name":"head","type":"object","remark":"消息头"},{"name":"code","type":"string","remark":"返回码"},{"name":"msg","type":"string","remark":"消息文本"}],"remark":"返回码 code 说明:\n200:正常\n400:客户端异常\n500:服务端异常","responseFailExample":"","responseFailParamsDesc":[{"name":"","type":"string","remark":""}],"responseTime":48036},"scripts":{"pre":"","post":""},"extend":{}}

页面列表

ITEM_HTML