| | |
| | | |
| | | ## 接口签名 |
| | | |
| | | 签名参考以下代码 |
| | | |
| | | ```java |
| | | |
| | | /** |
| | |
| | | return ""; |
| | | } |
| | | |
| | | //get 方式请求 url 为get请求时的地址 SystemConstant.HTTP_TRANSACTION_ID 为 header 中 TRANSACTION-ID SystemConstant.HTTP_REQ_TIME |
| | | ``` |
| | | |
| | | get 调用方式签名 |
| | | |
| | | ``` |
| | | |
| | | //get 方式请求 url 为get请求时的地址 SystemConstant.HTTP_TRANSACTION_ID 为 header 中 TRANSACTION-ID SystemConstant.HTTP_REQ_TIME |
| | | //为header 中 REQ-TIME |
| | | String tempGetParam = ""; |
| | | if (url.indexOf("?") > 0) { |
| | |
| | | httpHeaders.get(SystemConstant.HTTP_REQ_TIME).get(0), |
| | | paramIn); |
| | | |
| | | ``` |
| | | |
| | | post 调用方式签名 |
| | | |
| | | ``` |
| | | |
| | | //post 方式请求 param 为post body内容SystemConstant.HTTP_TRANSACTION_ID 为 header 中 TRANSACTION-ID SystemConstant.HTTP_REQ_TIME |
| | | //为header 中 REQ-TIME |
| | | String tempGetParam = ""; |