🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
# 数据定时下发接口 [TOC] ## 文档说明: 针对有数据需求的景区,定时下发数据给到景区。定时逻辑一般为五分钟内下发。 ## 通讯说明: 使用http post方法发送json格式数据 ##联合提供数据 secret :加密salt partner_id:合作伙伴id ## 加密 使用md5(secret+请求时间戳) ## 接口列表 ### 订单数据接口 * 请求数据 ~~~json { "sn":"通知流水号", "method":"order", "partner_id":"852", "req_time":"请求时的unix时间戳", "sign":"加密sign", "item":[ {"order":"订单号","code":"联合消费码","quantity":"2","create_time":"unix时间戳","title":"门票名称","ticket_id":"589"}, {"order":"订单号","code":"联合消费码","quantity":"2","create_time":"unix时间戳","title":"门票名称","ticket_id":"589"}, ] } ~~~ * 响应数据 ~~~json # code非200均为失败 { "code":200, "msg":"success" } ~~~ ### 退票数据接口 * 请求数据 ~~~json { "sn":"退款通知流水号", "method":"refund", "partner_id":"852", "req_time":"请求时的unix时间戳", "sign":"加密sign", "item":[ {"order":"订单号","code":"联合消费码","re_quantity":"2","return_time":"unix时间戳","refund_sn":"门票流水","ticket_id":"589"}, {"order":"订单号","code":"联合消费码","re_quantity":"2","return_time":"unix时间戳","refund_sn":"门票流水","ticket_id":"589"}, ] } ~~~ * 响应数据 ~~~json # code非200均为失败 { "code":200, "msg":"success" } ~~~ ### 核销通知接口 * 请求数据 ~~~json { "sn":"通知流水号", "method":"consume", "partner_id":"852", "req_time":"请求时的unix时间戳", "sign":"加密sign", "item":[ {"order":"订单号","code":"联合消费码","device_id":"核销硬件信息","consume_time":"unix时间戳","ticket_id":"589"}, {"order":"订单号","code":"联合消费码","device_id":"核销硬件信息","consume_time":"unix时间戳","ticket_id":"589"}, ] } ~~~ * 响应数据 ~~~json # code非200均为失败 { "code":200, "msg":"success" } ~~~