- BaseUrl: - 测试服: http://api-pre.heyqiwu.cn:18082 - 产品服: http://api-pro.heyqiwu.cn:18082 ##### 系列付费回调 URL: {BaseUrl}/api/series/pay/callback METHOD: POST RequestHeaders: | key | value | | :----------- | :------------ | | Content-Type | application/json;charset=UTF-8 | | App-Channel-Id | 渠道 | RequestBody: ``` { "workName":"作品名称", "uid":"用户id", "price": "12.21", // 价格 "duration": 1440, // 单位分钟 } ``` ResponseBody: ``` SUCCESS: { "code": 1, "msg": "SUCCESS" } FAILTURE: { "code": 20007, "msg": "用户认证失败", "data": null } ``` #### 获取系列付费的配置 URL: {BaseUrl}/api/series/pay/config?seriesName={系列名称} METHOD: GET RequestHeaders: | key | value | | :----------- | :------------ | | Content-Type | application/json;charset=UTF-8 | | App-Channel-Id | 渠道 | ResponseBody: ``` SUCCESS: { "code": 1, "msg": "成功", "data": { "imgUrl": "http://image.heyqiwu.cn/media/mp-asst/img/64e22de64a85e9fded97e6b248746944.png", // 系列付费的图片 "seriesName": "历史名人" // 系列付费名称 } } FAILTURE: { "code": 10002, "msg": "渠道ID不能为空!", "data": null } { "code": 10002, "msg": "系列名称为空!", "data": null } { "code": 50002, "msg": "配置错误或者未配置,请联系管理员!", "data": null } ``` Example: ``` curl --location --request GET 'http://api-pre.heyqiwu.cn:18082/api/series/pay/config?seriesName=%E5%8E%86%E5%8F%B2%E5%90%8D%E4%BA%BA' \ --header 'App-Channel-Id: tongyong-phone-mobileapp-test1' ```