💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
## 例子示例 ### 销售商品 ~~~[api] get:/ajax/sales *page#第几页 *limit#返回数量 <<< success { "code": 0, "count": "数据总量", "msg":"返回信息" "data":"[{ "id":xxx, "username":"xx", "type":"币类型", "num":"销售数量", "price":"单价", "limit":"最低购买(币)" ""}, ] }" } <<< error { "code": 500, "count": “", "msg":"返回信息" "data":"{ }" } ~~~ ### 用户销售商品 ~~~[api] post:/ajax/user/sales *page#第几页 *limit#返回数量 <<< success { "code": 0, "count": "数据总量", "msg":"返回信息" "data":"[{ "type":"币类型", "num":"销售数量", "price":"单价", "limit":"最低购买(币)" ""}, ] }" } <<< error { "code": 500, "count": “", "msg":"返回信息" "data":"{ }" } ~~~ ### 新闻阅读 ~~~[api] post:/ajax/newread *id#新闻id <<< success { "id":"2", "level":"重要", "title":"testtestt", "CreatedAt":"2018-06-12T03:58:00Z" } <<< error { "id":"", "level":"", "title":""," CreatedAt":"0001-01-01T00:00:00Z" } ~~~ ### 用户购买的订单 ~~~[api] post:/ajax/user/orders *page#第几页 *limit#返回数量 check#bool 订单是否确认收货 空则不分 <<< success { "code": 0, "count": "数据总量", "msg":"返回信息" "data":"[{ "sale_username":"商家用户名", "num":购买量, "price":价格, "total_price":总价, 'pay":是否支付(bool) "address":"收获地址", "order_number":"订单号" //交易需要备注 }, ] }" } <<< error { "code": 500, "count": “", "msg":"返回信息" "data":"{ }" } ~~~ ### 新闻 ~~~[api] get:/ajax/news *page#第几页 *limit#返回数量 <<< success { "code": 0, "count": "数据总量", "msg":"返回信息" "data":"[{ "id":"新闻id 阅读链接/newread?id=x" "type":"新闻类型", "title":"新闻标题", }, ] }" } <<< error { "code": 500, "count": “", "msg":"返回信息" "data":"{ }" } ~~~ ### 获取手机验证码 ~~~[api] post:/getcode *telephone#手机号码 <<< success { "error": 0, "info": “短信发送成功", } <<< error { "error": 1, "info": "具体错误信息", } ~~~ ### 用户获取手机验证码 ~~~[api] post:/user/getcode <<< success { "error": 0, "info": “短信发送成功", } <<< error { "error": 1, "info": "具体错误信息", } ~~~ ### 更改用户资料 ~~~[api] post:/user/change *type#email/phone/password/qq/weixin/address *code#验证码 *info#更改信息 <<< success { "error": 0, "info": “更改个人资料成功", } <<< error { "error": 1, "info": "具体错误信息", } ~~~ ### 删除订单 ~~~[api] post:/ajax/user/orders-delete *id#订单号 <<< success { "error": 0, "info": “删除订单成功", } <<< error { "error": 1, "info": "具体错误信息", } ~~~ ### 确认订单支付 ~~~[api] post:/ajax/user/pay-check *id#订单号 *hash#交易哈希 <<< success { "error": 0, "info": “订单支付成功", } <<< error { "error": 1, "info": "具体错误信息", } ~~~ ### 确认订单收货 ~~~[api] post:/ajax/user/orders-check *id#订单号 <<< success { "error": 0, "info": “订单确认收货成功", } <<< error { "error": 1, "info": "具体错误信息", } ~~~ ### 确认身份证 ~~~[api] post:/ajax/user/idcard-check *idcard#身份证 *name#姓名 <<< success { "error": 0, "info": “身份证确认成功", } <<< error { "error": 1, "info": "具体错误信息", } ~~~ ### 生成paypal订单 ~~~[api] get:/pay/pay *num#支付金额 美元 *address#收款地址 <<< success 页面 <<< error 错误页面 ~~~ ### paypal订单 ~~~[api] post:/pay/pay *num#支付金额 美元 *address#收款地址 <<< success { "error": 0, "info": “paypal订单id", } <<< error { "error": 1, "info": "具体错误信息", } ~~~ ### 确认并执行对应操作 ~~~[api] post:/pay/payOk *paymentId#订单id *PayerID#支付id <<< success { "error": 0, "info": “已支付", } <<< error { "error": 1, "info": "具体错误信息", } ~~~ ### login ~~~[api] post:/login *username#用户名 *passwod#密码 <<< success { "error": 0, "info": “登陆成功", } <<< error { "error": 1, "info": "具体错误信息", } ~~~ ### register ~~~[api] post:/register *telephone#手机号 *phonecode#验证码 *password#密码 <<< success { "error": 0, "info": “注册成功", } <<< error { "error": 1, "info": "具体错误信息", } ~~~ ### 提交商品 ~~~[api] post:/ajax/user/sale-submit *type#币类型 *num#总量 *price#单价 *limit#最小购买 <<< success { "error": 0, "info": “注册成功", } <<< error { "error": 1, "info": "具体错误信息", } ~~~ ### 搜索 ~~~[api] post:/ajax/search *type#搜索类型 type/limit/price *query#查询 *page#同上 *limit#同上 <<< success { "code": 0, "count": "数据总量", "msg":"返回信息" "data":"[{ "id":xxx, "username":"xx", "type":"币类型", "num":"销售数量", "price":"单价", "limit":"最低购买(币)" ""}, ] }" } <<< error { "code": 500, "count": “", "msg":"返回信息" "data":"{ }" } ~~~ ### 找回密码 ~~~[api] post:/findpwd *password#新密码 *telephone#账号手机号 *code#验证码 <<< success {"error":0,"info":"修改密码成功"} <<< error { "error": 1, "info": "具体错误信息", } ~~~