baseUrl: http://aws-nx2.chewrobot.com ##### 送花 (app) URL: baseUrl:18082/api/flower?module=works METHOD: POST ReqeustParams: | Parameter | Type | Description | | :----------- |:------| :------------ | | userId | String | 用户Id(选填,兼容以前的接口) | | aipioneerUsername | String | 作品ID | | way | String | 支付方式[ alipay | wxpay ] | | amount | Number | 送花数 | Headers: | key | value | | :----------- | :------------: | | Content-Type | application/x-www-form-urlencoded;charset=utf-8 | | Authorization | Bearer YOUR_ACCESS_TOKEN | | App-Channel-Id | 渠道ID(选填)默认 JIAOYOUTIANXIA | | ApiToken | 配合App-Channel-Id(选填) | responseBody: ``` SUCCESS: { "code": 1, "msg": "成功", "data": { "orderId": 19, "paySign": "支付签名" } } FAILTURE: { "code":20002, "msg":"用户认证失败!" "data":null } { "code":10005, "msg":"参数错误!", "data":null } ``` ##### 查询订单的状态 (app) URL: baseUrl:18082/api/payment/order/status METHOD: GET ReqeustParams: | Parameter | Type | Description | | :----------- |:------| :------------ | | userId | String | 用户Id(选填,兼容以前的接口) | | orderId | String | 订单id | Headers: | key | value | | :----------- | :------------: | | Content-Type | application/x-www-form-urlencoded;charset=utf-8 | | Authorization | Bearer YOUR_ACCESS_TOKEN | | App-Channel-Id | 渠道ID(选填)默认 JIAOYOUTIANXIA | | ApiToken | 配合App-Channel-Id(选填) | responseBody: ``` SUCCESS: { "code":1, "msg":"成功", "data":{ "status":0 // } } FAILTURE: { "code":20002, "msg":"用户认证失败!" "data":null } ``` ##### 获取当前用户对某一个作品的送花数 (app) URL: baseUrl:18082/api/flower/count?module=works METHOD: GET ReqeustParams: | Parameter | Type | Description | | :----------- |:------| :------------ | | userId | String | 用户Id(选填,兼容以前的接口) | | aipioneerUsername | String | 作品ID | Headers: | key | value | | :----------- | :------------: | | Content-Type | application/x-www-form-urlencoded;charset=utf-8 | | Authorization | Bearer YOUR_ACCESS_TOKEN | | App-Channel-Id | 渠道ID(选填)默认 JIAOYOUTIANXIA | | ApiToken | 配合App-Channel-Id(选填) | responseBody: ``` SUCCESS: { "code":1, "msg":"成功", "data":{ "count":2 } } FAILTURE: { "code":20002, "msg":"用户认证失败!" "data":null } ``` ##### 送花回调接口(暂时没有对IP限制,开发完毕添加IP白名单) URL: baseUrl:18082/api/flower/xiaowu METHOD: POST RequestBody: ``` { "botAccount":"8907881060", "infoId":"130", "number":3, "unitPrice":1 } ``` responseBody: ``` SUCCESS: { "code": 1, "msg": "成功", "data": null } FAILURE: { "code": 10001, "msg": "作品不存在!", "data": null } { "code": 10005, "msg": "参数错误!", "data": null } { "code": 500, "msg": "服务器异常!", "data": null } ``` ##### 查询订单的状态 (app) URL: baseUrl:18082/api/flower/price METHOD: GET responseBody: ``` SUCCESS: { "code": 1, "msg": "成功", "data": { "price": "0.1" } } ```