| | |
| | | } |
| | | |
| | | |
| | | String apiPath = "sit/api/v3/labs/trans/preorder"; |
| | | String apiPath = "api/v3/labs/trans/preorder"; |
| | | String body = "{\n" + |
| | | "\t\"req_time\": \"" + time + "\",\n" + |
| | | "\t\"version\": \"3.0\",\n" + |
| | |
| | | |
| | | |
| | | // 操作分账 |
| | | HttpRequest post = HttpUtil.createPost(LakalaConfig.getServerUrl() + "sit/api/v3/sacs/separate"); |
| | | HttpRequest post = HttpUtil.createPost(LakalaConfig.getServerUrl() + "api/v3/sacs/separate"); |
| | | |
| | | HashMap<String, Object> reqMap = new HashMap<>(); |
| | | reqMap.put("version", "3.0"); |
| | |
| | | // String responseStr = response.body(); |
| | | |
| | | String authorization1 = getAuthorization(jsonString); |
| | | org.apache.http.HttpResponse response1 = post(LakalaConfig.getServerUrl() + "sit/api/v3/sacs/separate", jsonString, authorization1); |
| | | org.apache.http.HttpResponse response1 = post(LakalaConfig.getServerUrl() + "api/v3/sacs/separate", jsonString, authorization1); |
| | | String responseStr = IOUtils.toString(response1.getEntity().getContent(), ENCODING); |
| | | |
| | | System.err.println("分佣!!!!"+responseStr); |
| | |
| | | String outTradeNo = time + str; |
| | | String refund_amount = erpProcurement.getPayMoney().multiply(BigDecimal.valueOf(100)).intValue() + ""; |
| | | |
| | | String apiPath = "sit/api/v3/rfd/refund_front/refund"; |
| | | String apiPath = "api/v3/rfd/refund_front/refund"; |
| | | String body1 = "{\n" + |
| | | "\t\"req_data\": {\n" + |
| | | "\t\t\"merchant_no\": \""+erpProcurement.getMerchantNo()+"\",\n" + |
| | |
| | | } |
| | | String outTradeNo = time + str; |
| | | String refund_amount = erpProcurement.getPayMoney().multiply(BigDecimal.valueOf(100)).intValue() + ""; |
| | | String apiPath = "sit/api/v3/rfd/refund_front/refund"; |
| | | String apiPath = "api/v3/rfd/refund_front/refund"; |
| | | String body1 = "{\n" + |
| | | |
| | | "\t\"req_data\": {\n" + |
| | |
| | | String jsonString = JSON.toJSONString(reqMap); |
| | | |
| | | String authorization1 = getAuthorization(jsonString); |
| | | org.apache.http.HttpResponse response1 = post(LakalaConfig.getServerUrl() + "sit/api/v3/sacs/fallback", jsonString, authorization1); |
| | | org.apache.http.HttpResponse response1 = post(LakalaConfig.getServerUrl() + "api/v3/sacs/fallback", jsonString, authorization1); |
| | | String responseStr = IOUtils.toString(response1.getEntity().getContent(), ENCODING); |
| | | |
| | | |