old mode 100644
new mode 100755
| | |
| | | * @return |
| | | * @throws Exception |
| | | */ |
| | | public String confirmPayFee(String param) { |
| | | public String confirmPayFee(String param, String wId) { |
| | | JSONObject resJson = new JSONObject(); |
| | | resJson.put("result_code", "010002"); |
| | | resJson.put("result_msg", "失败"); |
| | |
| | | String resultCode = map.getString("result_code"); |
| | | if ("000000".equals(resultCode)) { |
| | | //更新数据 |
| | | int result = confirmPayFee(map); |
| | | int result = confirmPayFee(map, wId); |
| | | if (result > 0) { |
| | | //支付成功 |
| | | resJson.put("result_code", "000000"); |
| | |
| | | } |
| | | |
| | | |
| | | public int confirmPayFee(JSONObject map) { |
| | | String wId = map.get("wId").toString(); |
| | | public int confirmPayFee(JSONObject map, String wId) { |
| | | wId = wId.replace(" ", "+"); |
| | | ResponseEntity<String> responseEntity = null; |
| | | |
| | |
| | | responseEntity = new ResponseEntity<String>(e.getMessage(), HttpStatus.INTERNAL_SERVER_ERROR); |
| | | } finally { |
| | | logger.debug("请求地址为,{} 请求中心服务信息,{},中心服务返回信息,{}", url, httpEntity, responseEntity); |
| | | return responseEntity; |
| | | } |
| | | |
| | | return responseEntity; |
| | | } |
| | | |
| | | |