| | |
| | | if (!headers.containsKey(CommonConstant.HTTP_USER_ID)) { |
| | | headers.put(CommonConstant.HTTP_USER_ID, StringUtil.isEmpty(pd.getUserId()) ? "-1" : pd.getUserId()); |
| | | } |
| | | |
| | | headers.put(CommonConstant.USER_ID, StringUtil.isEmpty(pd.getUserId()) ? "-1" : pd.getUserId()); |
| | | if (!headers.containsKey(CommonConstant.HTTP_APP_ID)) { |
| | | headers.put(CommonConstant.HTTP_APP_ID, pd.getAppId()); |
| | | } |
| | | if (!headers.containsKey(CommonConstant.HTTP_TRANSACTION_ID)) { |
| | | headers.put(CommonConstant.HTTP_TRANSACTION_ID, pd.getTransactionId()); |
| | | } |
| | | if (!headers.containsKey(CommonConstant.HTTP_REQ_TIME)) { |
| | | headers.put(CommonConstant.HTTP_REQ_TIME, pd.getRequestTime()); |
| | | } |
| | | if (!headers.containsKey(CommonConstant.HTTP_SIGN)) { |
| | | headers.put(CommonConstant.HTTP_SIGN, ""); |
| | | } |
| | | |
| | | if (url.indexOf("?") > -1) { |
| | | url = url.substring(0, url.indexOf("?")); |