简要描述:
请求域名:
- http://xx.com
请求路由:
POST/&route=plugin.exam-engine.frontend.certificate.pre-apply
请求参数说明:
参数名 | 类型 | 是否必需 | 说明 |
---|---|---|---|
apply_list | array | 是 | 申请数据数组 |
apply_list[]. certificate_id | int | 是 | 证书ID |
apply_list[]. student_name | string | 是 | 学生姓名 |
apply_list[]. id_card | string | 是 | 身份证号码 |
apply_list[]. image | string | 是 | 图片地址 |
返回示例:
正确时返回答题记录:
{
"result": 1,
"msg": "申请成功",
"data": {
"pay_sn": "NN20250911V45hku2UL157UuZUUk9111s",
"total_price": "21312.00",
"buttons": [
{
"code": "balance",
"name": "余额",
"value": 3,
"weight": 3,
"other": {
"need_password": false,
"usable": "10000384.51",
"sale": [],
"proportion_status": "0",
"recharge_order_pay": false,
"pay_discount_str": ""
},
"icon": {
"icon_url": "icon-pay_yue",
"color": "#ff7433"
}
},
{
"code": "alipay",
"name": "支付宝",
"value": 2,
"weight": 1,
"other": [],
"icon": {
"icon_url": "icon-pay_alipay",
"color": "#29a1f7"
}
}
],
"apply_data": [
{
"uniacid": 1,
"member_id": 33,
"certificate_id": 1,
"student_name": "丰川祥子",
"id_card": "2132123",
"image": "",
"price": "21312.00",
"pay_sn": "NN20250911V45hku2UL157UuZUUk9111s",
"pay_type_id": 0,
"status": 0,
"reject_reason": "",
"created_at": 1757583381,
"updated_at": 1757583381
}
]
},
}
参数名 | 类型 | 说明 |
---|---|---|
result | integer | 请求结果状态码,1 表示成功 |
msg | string | 请求结果消息,"申请成功" 表示操作成功 |
data | object | 主要数据对象 |
data.pay_sn | string | 支付订单号 |
data.total_price | string | 总金额(字符串格式) |
data.buttons | array | 支付方式按钮列表 |
data.buttons[].code | string | 支付方式代码 |
data.buttons[].name | string | 支付方式名称 |
data.buttons[].value | integer | 支付方式值 |
data.buttons[].weight | integer | 支付方式权重(排序用) |
data.buttons[].other | object | 其他支付相关信息 |
data.buttons[].other.need_password | boolean | 是否需要支付密码 |
data.buttons[].other.usable | string | 可用余额 |
data.buttons[].other.sale | array | 销售信息(空数组) |
data.buttons[].other.proportion_status | string | 比例状态 |
data.buttons[].other.recharge_order_pay | boolean | 是否充值订单支付 |
data.buttons[].other.pay_discount_str | string | 支付折扣信息 |
data.buttons[].icon | object | 支付方式图标信息 |
data.buttons[].icon.icon_url | string | 图标 URL 或标识 |
data.buttons[].icon.color | string | 图标颜色(十六进制格式) |
data.apply_data | array | 申请数据列表 |
data.apply_data[].uniacid | integer | 应用 ID |
data.apply_data[].member_id | integer | 成员 ID |
data.apply_data[].certificate_id | integer | 证书 ID |
data.apply_data[].student_name | string | 学生姓名 |
data.apply_data[].id_card | string | 身份证号 |
data.apply_data[].image | string | 图片 URL(空字符串表示无图片) |
data.apply_data[].price | string | 价格(字符串格式) |
data.apply_data[].pay_sn | string | 支付订单号 |
data.apply_data[].pay_type_id | integer | 支付类型 ID(0 表示未支付) |
data.apply_data[].status | integer | 申请状态(0 表示待处理) |
data.apply_data[].reject_reason | string | 拒绝原因(空字符串表示无拒绝原因) |
data.apply_data[].created_at | integer | 创建时间(时间戳格式) |
data.apply_data[].updated_at | integer | 更新时间(时间戳格式) |