http://futureaism.636.ltd/api.php?route=health检查 PHP、JSON 与数据文件是否可用。
权限:无需登录所有接口均由 api.php 提供。独立商家店铺使用 merchant 标识读取公开数据,已审核通过的店主使用独立商家管理接口。
http://futureaism.636.ltd/api.php?route={route}写入接口使用 JSON 请求体和 Content-Type: application/json。登录后可使用浏览器 Cookie,外部调用请传会话令牌。
Authorization: Bearer {sessionToken}
X-Session-Token: {sessionToken}{
"productId": 12,
"quantity": 1,
"payType": "alipay"
}安全说明:这是商城自身的业务 API,不提供公开密钥。商户易支付密钥、SMTP 密码和卡密内容不会通过配置接口返回。
访客可调用。独立商家店铺使用店铺标识获取与主站完全隔离的商品数据。
http://futureaism.636.ltd/api.php?route=health检查 PHP、JSON 与数据文件是否可用。
权限:无需登录http://futureaism.636.ltd/api.php?route=bootstrap读取主站商品、公告、分类和登录状态。
权限:无需登录http://futureaism.636.ltd/api.php?route=bootstrap&merchant={slug}读取独立商家店铺的商品、公告和店铺信息。
权限:无需登录http://futureaism.636.ltd/api.php?route=auth/captcha&purpose=login|register获取登录或注册图形验证码。
权限:无需登录http://futureaism.636.ltd/api.php?route=register注册账号;启用邮箱验证时需提交邮箱验证码。
权限:无需登录http://futureaism.636.ltd/api.php?route=login用户登录并返回 sessionToken。
权限:无需登录http://futureaism.636.ltd/api.php?route=admin/login管理员登录。
权限:管理员账号http://futureaism.636.ltd/api.php?route=auth/email-code发送登录或注册邮箱验证码。
权限:按配置启用http://futureaism.636.ltd/api.php?route=order-query&orderNo={orderNo}按订单号查询公开订单状态。
权限:无需登录需要用户登录。创建商家店铺订单时,在请求中附带 merchantSlug。
http://futureaism.636.ltd/api.php?route=orders读取当前用户商品订单、充值和退款记录。
权限:已登录用户http://futureaism.636.ltd/api.php?route=orders创建订单;独立店铺订单传 merchantSlug。
权限:已登录或填写联系方式http://futureaism.636.ltd/api.php?route=orders/cancel取消尚未支付的订单。
权限:订单所属用户http://futureaism.636.ltd/api.php?route=recharge创建余额充值订单。
权限:已登录用户http://futureaism.636.ltd/api.php?route=refunds提交人工退款申请。
权限:已登录用户http://futureaism.636.ltd/api.php?route=payment/status&order={orderNo}读取订单或充值支付状态。
权限:订单所属用户http://futureaism.636.ltd/api.php?route=merchants/mine读取当前用户商家申请或店铺资料。
权限:已登录用户http://futureaism.636.ltd/api.php?route=merchants提交或更新商家入驻申请。
权限:已登录用户http://futureaism.636.ltd/api.php?route=logout退出并废弃当前会话。
权限:已登录用户POST http://futureaism.636.ltd/api.php?route=orders
Authorization: Bearer {sessionToken}
{ "productId": 18, "quantity": 1, "payType": "alipay", "merchantSlug": "merchant-demo" }店铺地址:http://futureaism.636.ltd/index.php?merchant={slug}。商家必须是店铺所有者且审核通过,商品、库存、订单、SMTP 和易支付配置均只作用于自己的店铺。
http://futureaism.636.ltd/api.php?route=merchant/dashboard返回本店商品、订单、SMTP 和易支付状态。
权限:审核通过的店主http://futureaism.636.ltd/api.php?route=merchant/settings更新店铺名称、介绍、客服说明和公告。
权限:审核通过的店主http://futureaism.636.ltd/api.php?route=merchant/products新建或编辑自己的商品,不可操作主站商品。
权限:审核通过的店主http://futureaism.636.ltd/api.php?route=merchant/products/delete删除自己的商品。
权限:审核通过的店主http://futureaism.636.ltd/api.php?route=merchant/product-stock更新可售数量并录入卡密或链接。
权限:审核通过的店主http://futureaism.636.ltd/api.php?route=merchant/smtp保存或检测本店 SMTP,密码加密保存。
权限:审核通过的店主http://futureaism.636.ltd/api.php?route=merchant/epay保存本店易支付信息,密钥不会回传。
权限:审核通过的店主GET http://futureaism.636.ltd/api.php?route=bootstrap&merchant=merchant-demo
需要管理员会话。管理员管理主站和商家审核;商家独立支付密钥不会在列表接口中返回。
http://futureaism.636.ltd/api.php?route=admin/bootstrap读取后台汇总、商品、用户、订单和商家信息。
权限:管理员http://futureaism.636.ltd/api.php?route=admin/products新建或编辑主站商品。
权限:管理员http://futureaism.636.ltd/api.php?route=admin/product-stock维护主站商品卡密库存。
权限:管理员http://futureaism.636.ltd/api.php?route=admin/groups维护主站商品分组。
权限:管理员http://futureaism.636.ltd/api.php?route=admin/users编辑用户权限和余额。
权限:管理员http://futureaism.636.ltd/api.php?route=admin/merchants审核、停用或删除商家申请。
权限:管理员http://futureaism.636.ltd/api.php?route=admin/settings更新主站名称、公告和服务信息。
权限:管理员http://futureaism.636.ltd/api.php?route=admin/smtp保存或检测平台 SMTP。
权限:管理员支付渠道异步通知统一进入此入口。系统会根据订单归属使用主站或该商家店铺的密钥,验证商户 ID、MD5 签名、金额和交易状态。
POST http://futureaism.636.ltd/api.php?route=payment/notify 必填:pid、out_trade_no、trade_no、money、trade_status、sign、sign_type 成功响应:success
注意:不要手动模拟支付成功。订单仅在渠道异步通知通过验签后自动发货。