From 9318f2446a94ce7df308c57c1c651e0c23e0036b Mon Sep 17 00:00:00 2001
From: heheng <heheng@123456>
Date: Thu, 20 Feb 2025 08:49:23 +0800
Subject: [PATCH] 测试
---
exam-system/src/main/java/com/gkhy/exam/pay/service/impl/CoalPayServiceImpl.java | 5 ++
/dev/null | 0
exam-system/src/main/java/com/gkhy/exam/pay/utils/DemoUtils.java | 3 +
exam-system/src/main/java/com/gkhy/exam/pay/utils/PayUtils.java | 74 +++++++++++++++----------------------
exam-system/pom.xml | 13 ++++--
5 files changed, 46 insertions(+), 49 deletions(-)
diff --git a/exam-system/pom.xml b/exam-system/pom.xml
index a2d6b6c..e41ef87 100644
--- a/exam-system/pom.xml
+++ b/exam-system/pom.xml
@@ -38,11 +38,14 @@
<scope>compile</scope>
</dependency>
<dependency>
- <groupId>com.example</groupId>
- <artifactId>jit-vstk-jdk15-new-2.0.308.25.1</artifactId>
- <version>1.0</version>
- <scope>system</scope>
- <systemPath>${project.basedir}/src/main/resources/thdjar/jit-vstk-jdk15-new-2.0.308.25.1.jar</systemPath>
+ <groupId>jit</groupId>
+ <artifactId>vstk</artifactId>
+ <version>1.5</version>
+ </dependency>
+ <dependency>
+ <groupId>com.caizheng</groupId>
+ <artifactId>SNAPSHOT</artifactId>
+ <version>1.0.0</version>
</dependency>
<dependency>
diff --git a/exam-system/src/main/java/com/gkhy/exam/pay/service/impl/CoalPayServiceImpl.java b/exam-system/src/main/java/com/gkhy/exam/pay/service/impl/CoalPayServiceImpl.java
index 77a968e..6044a4c 100644
--- a/exam-system/src/main/java/com/gkhy/exam/pay/service/impl/CoalPayServiceImpl.java
+++ b/exam-system/src/main/java/com/gkhy/exam/pay/service/impl/CoalPayServiceImpl.java
@@ -366,6 +366,11 @@
PayUtils payUtils = new PayUtils();
ResultVo resultVo = payUtils.faqiV2(payReqData);
+ if (!resultVo.getRespcode().equals("BUS0000")) {
+ throw new BusinessException(this.getClass(), ResultConstants.BUSINESS_ERROR, "签名验证错误");
+ } else {
+ //todo 业务处理
+ }
log.info("请求结果:" + JSONObject.toJSONString(resultVo));
// String fileData = resultVo.getRespdata().getFileData();
// //票据原文转为byte字节文件
diff --git a/exam-system/src/main/java/com/gkhy/exam/pay/utils/ClientFactory.java b/exam-system/src/main/java/com/gkhy/exam/pay/utils/ClientFactory.java
deleted file mode 100644
index 641ea71..0000000
--- a/exam-system/src/main/java/com/gkhy/exam/pay/utils/ClientFactory.java
+++ /dev/null
@@ -1,245 +0,0 @@
-/* */
-package com.gkhy.exam.pay.utils;
-/* */
-/* */
-
-
-import com.gkhy.exam.pay.utils.config.SdkConfig;
-import com.gkhy.exam.pay.utils.config.StringUtil;
-
-import java.io.IOException;
-import java.io.InputStream;
-import java.util.Properties;
-
-/* */
-/* */
-/* */
-/* */
-/* */
-/* */
-/* */
-/* */ public class ClientFactory
- /* */ {
- /* */ private static boolean onReady = false;
-
- /* */
- /* */
- public static void initConfig() {
- /* 25 */
- if (!onReady) {
- /* 26 */
- InputStream read = null;
- /* */
- try {
- /* 28 */
- read = ClientFactory.class.getClassLoader().getResourceAsStream("config.properties");
- /* */
- /* 30 */
- if (read != null) {
- /* 31 */
- Properties properties = new Properties();
- /* 32 */
- properties.load(read);
- /* 33 */
- String appId = properties.getProperty("appId");
- /* 34 */
- String fsServiceUrl = properties.getProperty("remote.fsweb.service");
- /* 35 */
- String fsPublicUrl = properties.getProperty("remote.fsweb.public");
- /* 36 */
- sdkConfig(appId, fsServiceUrl, fsPublicUrl);
- /* */
- } else {
- /* */
- /* 39 */
- if (SdkConfig.appId == null) {
- /* 40 */
- SdkConfig.loadSDKProperties();
- /* */
- }
- /* 42 */
- openClient();
- /* */
- }
- /* 44 */
- } catch (Exception e) {
- /* 45 */
- e.printStackTrace();
- /* 46 */
- throw new RuntimeException("加载配置文件错误!");
- /* */
- } finally {
- /* */
- try {
- /* 49 */
- if (read != null) {
- /* 50 */
- read.close();
- /* */
- }
- /* 52 */
- } catch (IOException e) {
- /* 53 */
- e.printStackTrace();
- /* 54 */
- throw new RuntimeException("加载配置文件错误!");
- /* */
- }
- /* */
- }
- /* */
- }
- /* */
- }
-
- /* */
- /* */
- /* */
- /* */
- /* */
- /* */
- /* */
- /* */
- /* */
- /* */
- /* */
- public static ResponseDataVo<?> sdkConfig(String appId, String fsServiceUrl, String fsPublicUrl) {
- /* 70 */
- if (!StringUtil.verificationEmpty(appId) && !StringUtil.verificationEmpty(fsServiceUrl) &&
- /* 71 */ !StringUtil.verificationEmpty(fsPublicUrl)) {
- /* 72 */
- SdkConfig.appId = appId;
- /* 73 */
- SdkConfig.fsServiceUrl = fsServiceUrl;
- /* 74 */
- SdkConfig.fsPublicUrl = fsPublicUrl;
- /* 75 */
- openClient();
- /* 76 */
- return new ResponseDataVo("0000", null, "设置成功");
- /* */
- }
- /* 78 */
- return new ResponseDataVo("1111", null, "设置失败");
- /* */
- }
-
- /* */
- /* */
- /* */
- public static void logConfig(String logPath, String logMaxFileSize, String logTotalSizeCap, boolean logAdditive) {
- /* 83 */
- if (logPath != null) {
- /* 84 */
- SdkConfig.logPath = logPath;
- /* */
- }
- /* 86 */
- if (logMaxFileSize != null) {
- /* 87 */
- SdkConfig.logMaxFileSize = logMaxFileSize;
- /* */
- }
- /* 89 */
- if (logTotalSizeCap != null) {
- /* 90 */
- SdkConfig.logTotalSizeCap = logTotalSizeCap;
- /* */
- }
- /* 92 */
- SdkConfig.logAdditive = logAdditive;
- /* */
- /* 94 */
- // LoggerBuilder.reLoad();
- /* */
- }
-
- /* */
- /* */
- /* */
- /* */
- /* */
- /* */
- /* */
- /* */
- static void openClient() {
- /* 104 */
- onReady = true;
- /* */
- }
-
- /* */
- /* */
- /* */
- /* */
- /* */
- /* */
- /* */
- /* */
- static void closeClient() {
- /* 114 */
- onReady = false;
- /* */
- }
-
- /* */
- /* */
- /* */
- /* */
- /* */
- /* */
- /* */
- /* */
-// public static BillClient getBillClient() {
-// /* 124 */
-// initConfig();
-// /* */
-// /* 126 */
-// if (!onReady) {
-// /* 127 */
-// throw new RuntimeException(
-// /* 128 */ "Your configuration item verification failed. Please call the sdkconfig function to set");
-// /* */
-// }
-// /* */
-// /* 131 */
-// BillClient billClient = (BillClient) (new ClientValidatorAndLogProxy(new BillClientImpl())).newProxyInstance();
-// /* 132 */
-// return billClient;
-// /* */
-// }
-//
-// /* */
-// /* */
-// /* */
-// /* */
-// /* */
-// /* */
-// /* */
-// /* */
-// public static PaymentClient getPaymentClient() {
-// /* 142 */
-// initConfig();
-// /* 143 */
-// if (!onReady) {
-// /* 144 */
-// throw new RuntimeException(
-// /* 145 */ "Your configuration item verification failed. Please call the sdkconfig function to set");
-// /* */
-// }
-// /* */
-// /* 148 */
-// PaymentClient paymentClient = (PaymentClient) (new ClientValidatorAndLogProxy(new PaymentClientImpl()))
-///* 149 */.newProxyInstance();
-// /* 150 */
-// return paymentClient;
-// /* */
-// }
- /* */
-}
-
-
-/* Location: D:\jar\sign_util-1.0-SNAPSHOT.20240227.jar!\BOOT-INF\lib\SNAPSHOT-1.0.0.jar!\com\xjhys\edu\fee\sdk\client\impl\ClientFactory.class
- * Java compiler version: 8 (52.0)
- * JD-Core Version: 1.1.3
- */
\ No newline at end of file
diff --git a/exam-system/src/main/java/com/gkhy/exam/pay/utils/DemoUtils.java b/exam-system/src/main/java/com/gkhy/exam/pay/utils/DemoUtils.java
index aac0545..d1cc866 100644
--- a/exam-system/src/main/java/com/gkhy/exam/pay/utils/DemoUtils.java
+++ b/exam-system/src/main/java/com/gkhy/exam/pay/utils/DemoUtils.java
@@ -7,6 +7,9 @@
import cn.hutool.http.HttpUtil;
import com.alibaba.fastjson2.JSONObject;
import com.gkhy.exam.pay.entity.PayReqData;
+import com.xjhys.edu.fee.sdk.client.impl.ClientFactory;
+import com.xjhys.edu.fee.sdk.model.ResponseDataVo;
+import com.xjhys.edu.fee.sdk.model.SignatureFileVo;
import org.apache.commons.codec.binary.Base64;
import sun.misc.BASE64Encoder;
diff --git a/exam-system/src/main/java/com/gkhy/exam/pay/utils/PayUtils.java b/exam-system/src/main/java/com/gkhy/exam/pay/utils/PayUtils.java
index 980b8b7..337ff13 100644
--- a/exam-system/src/main/java/com/gkhy/exam/pay/utils/PayUtils.java
+++ b/exam-system/src/main/java/com/gkhy/exam/pay/utils/PayUtils.java
@@ -9,6 +9,11 @@
import cn.hutool.http.HttpUtil;
import com.alibaba.fastjson2.JSONObject;
import com.gkhy.exam.pay.entity.PayReqData;
+import com.xjhys.edu.fee.sdk.client.BillClient;
+import com.xjhys.edu.fee.sdk.client.impl.ClientFactory;
+import com.xjhys.edu.fee.sdk.model.ResponseDataVo;
+import com.xjhys.edu.fee.sdk.model.SignatureFileVo;
+import com.xjhys.edu.fee.sdk.model.UploadXmlReponseDataVo;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.codec.digest.DigestUtils;
import org.apache.http.HttpEntity;
@@ -445,11 +450,17 @@
String jmsignfile = this.signFilejdnew(trr2);
String zuizhongpath = montageXmlV3(xmlFilePath, jmsignfile);
String zzsignfile = convertFileToBase64(zuizhongpath);
- this.uploadXmlV2(orderNo1, zzsignfile);
+ Boolean b = this.uploadXmlV2(orderNo1, zzsignfile);
+
File file = new File(xmlFilePath);
file.delete();
File file1 = new File(zuizhongpath);
file1.delete();
+ if (b) {
+ return resultVo;
+ } else {
+ resultVo.setRespcode("BUS8888");
+ }
return resultVo;
}
@@ -577,52 +588,27 @@
}
}
- public ResultVo uploadXmlV2(String orderId, String plain) {
- Map<String, String> params = new HashMap<>();
-
-
- String appid = "A1749891493E4CDDBFE4506357B1F0AB";
- String uploadUrl = "http://finpt.xjcz.gov.cn/fs-service/fs-pay/uploadXml.do";
-
+ public Boolean uploadXmlV2(String orderNo, String signFile) {
+ log.info("上传验签开始");
+ log.info("上传验签参数订单号:" + orderNo + "签名文件:" + signFile);
+ ResponseDataVo<?> res = ClientFactory.sdkConfig("A1749891493E4CDDBFE4506357B1F0AB", "http://finpt.xjcz.gov.cn/fs-service", "http://finpt.xjcz.gov.cn/fs-service");
SignatureFileVo signatureFile = new SignatureFileVo();
- signatureFile.setFileData(plain);
- signatureFile.setOrderNo(orderId);
- String reqdatastr = JSONObject.toJSONString(signatureFile);
+ signatureFile.setFileData(signFile);
+ signatureFile.setOrderNo(orderNo);
+ BillClient billClient = ClientFactory.getBillClient();
+ ResponseDataVo<UploadXmlReponseDataVo> dataRes = billClient.uploadXml(signatureFile);
- String mac = this.getMD5("A1749891493E4CDDBFE4506357B1F0AB||" + this.getBase64(reqdatastr));
- JSONObject jsonObject = new JSONObject();
- jsonObject.put("appid", "A1749891493E4CDDBFE4506357B1F0AB");
- jsonObject.put("mac", mac);
- jsonObject.put("reqdata", this.getBase64(reqdatastr));
- Map<String, String> header = new HashMap();
- header.put("Accept", "application/json;charset=utf-8");
- header.put("Content-Type", "application/json;charset=utf-8");
- String resultStr = HttpUtil.post(uploadUrl, jsonObject);
- JSONObject result = JSONObject.parseObject(resultStr);
-
-// String reqdata = getBase64(signatureFile.toString());
-// String mac = appid + "||" + reqdata;
-// mac = DigestUtils.md5Hex(mac.getBytes());
-//
-// params.put("appid", appid);
-// params.put("reqdata", reqdata);
-// params.put("mac", mac);
-//
-// HttpPost httpPost = new HttpPost(orderUrl);
-// httpPost.setEntity(assemblyFormEntity(params, "utf-8"));
-// HttpClient httpClient = getHttpClient(orderUrl);
-// HttpResultVo execute = null;
-// try {
-// execute = httpClient.execute(httpPost, getResponseHandler());
-// } catch (IOException e) {
-// throw new RuntimeException(e);
-// }
-// String stringContent = execute.getStringContent();
- ResultVo resultVo = JSONObject.parseObject(resultStr, ResultVo.class);
- log.info("请求结果转为:" + resultVo);
- return resultVo;
+ if (!dataRes.getRespcode().equals("BUS0000")) {
+ log.info("上传验签失败:" + dataRes);
+ return false;
+ }
+// String mac = this.getMD5("A1749891493E4CDDBFE4506357B1F0AB||" + this.getBase64(signatureFile.toString()));
+// JSONObject jsonObject = new JSONObject();
+// jsonObject.put("appid", "A1749891493E4CDDBFE4506357B1F0AB");
+// jsonObject.put("mac", mac);
+// jsonObject.put("reqdata", this.getBase64(signatureFile.toString()));
+ return true;
}
-
public String getMD5(String input) {
try {
diff --git a/exam-system/src/main/java/com/gkhy/exam/pay/utils/ResponseDataVo.java b/exam-system/src/main/java/com/gkhy/exam/pay/utils/ResponseDataVo.java
deleted file mode 100644
index f52ebc7..0000000
--- a/exam-system/src/main/java/com/gkhy/exam/pay/utils/ResponseDataVo.java
+++ /dev/null
@@ -1,105 +0,0 @@
-/* */
-package com.gkhy.exam.pay.utils;
-
-/* */
-/* */
-/* */
-/* */
-/* */
-/* */
-/* */
-/* */
-/* */
-/* */
-/* */
-/* */
-/* */ public class ResponseDataVo<T>
- /* */ {
- /* */ private String respcode;
- /* */ private String respmsg;
- /* */ private T respdata;
-
- /* */
- /* */
- public String getRespcode() {
- /* 21 */
- return this.respcode;
- /* */
- }
-
- /* */
- /* */
- public void setRespcode(String respcode) {
- /* 25 */
- this.respcode = respcode;
- /* */
- }
-
- /* */
- /* */
- public String getRespmsg() {
- /* 29 */
- return this.respmsg;
- /* */
- }
-
- /* */
- /* */
- public void setRespmsg(String respmsg) {
- /* 33 */
- this.respmsg = respmsg;
- /* */
- }
-
- /* */
- /* */
- public T getRespdata() {
- /* 37 */
- return this.respdata;
- /* */
- }
-
- /* */
- /* */
- public void setRespdata(T respdata) {
- /* 41 */
- this.respdata = respdata;
- /* */
- }
-
- /* */
- /* */
- /* */
- /* */
- public ResponseDataVo() {
- }
-
- /* */
- /* */
- /* */
- public ResponseDataVo(String respcode, String respmsg, T respdata) {
- /* 50 */
- this.respcode = respcode;
- /* 51 */
- this.respmsg = respmsg;
- /* 52 */
- this.respdata = respdata;
- /* */
- }
-
- /* */
- /* */
- /* */
- public String toString() {
- /* 57 */
- return "ResponseData [respcode=" + this.respcode + ", respmsg=" + this.respmsg + ", respdata=" + this.respdata + "]";
- /* */
- }
- /* */
-}
-
-
-/* Location: D:\jar\sign_util-1.0-SNAPSHOT.20240227.jar!\BOOT-INF\lib\SNAPSHOT-1.0.0.jar!\com\xjhys\edu\fee\sdk\model\ResponseDataVo.class
- * Java compiler version: 8 (52.0)
- * JD-Core Version: 1.1.3
- */
\ No newline at end of file
diff --git a/exam-system/src/main/java/com/gkhy/exam/pay/utils/SignatureFileVo.java b/exam-system/src/main/java/com/gkhy/exam/pay/utils/SignatureFileVo.java
deleted file mode 100644
index e684780..0000000
--- a/exam-system/src/main/java/com/gkhy/exam/pay/utils/SignatureFileVo.java
+++ /dev/null
@@ -1,55 +0,0 @@
-package com.gkhy.exam.pay.utils;
-
-/* */ public class SignatureFileVo
- /* */ {
- /* */
-
- /* */ private String orderNo;
- /* */
-
- /* */ private String fileData;
-
- /* */
- /* */
- public String getOrderNo() {
- /* 24 */
- return this.orderNo;
- /* */
- }
-
- /* */
- /* */
- public void setOrderNo(String orderNo) {
- /* 28 */
- this.orderNo = orderNo;
- /* */
- }
-
- /* */
- /* */
- public String getFileData() {
- /* 32 */
- return this.fileData;
- /* */
- }
-
- /* */
- /* */
- public void setFileData(String fileData) {
- /* 36 */
- this.fileData = fileData;
- /* */
- }
-
- /* */
- /* */
- /* */
- public String toString() {
- /* 41 */
- return "SignatureFile [orderNo=" + this.orderNo + ", fileData=" + this.fileData + "]";
- /* */
- }
- /* */
-}
-
-
diff --git a/exam-system/src/main/java/com/gkhy/exam/pay/utils/config/PropertiesConfig.java b/exam-system/src/main/java/com/gkhy/exam/pay/utils/config/PropertiesConfig.java
deleted file mode 100644
index d0fd044..0000000
--- a/exam-system/src/main/java/com/gkhy/exam/pay/utils/config/PropertiesConfig.java
+++ /dev/null
@@ -1,18 +0,0 @@
-package com.gkhy.exam.pay.utils.config;
-
-import java.lang.annotation.*;
-
-@Target({ElementType.FIELD, ElementType.METHOD, ElementType.TYPE})
-@Retention(RetentionPolicy.RUNTIME)
-@Documented
-public @interface PropertiesConfig {
- String fileName() default "";
-
- String name() default "";
-}
-
-
-/* Location: D:\jar\sign_util-1.0-SNAPSHOT.20240227.jar!\BOOT-INF\lib\SNAPSHOT-1.0.0.jar!\com\xjhys\edu\fee\sdk\annotation\PropertiesConfig.class
- * Java compiler version: 8 (52.0)
- * JD-Core Version: 1.1.3
- */
\ No newline at end of file
diff --git a/exam-system/src/main/java/com/gkhy/exam/pay/utils/config/PropertiesUtil.java b/exam-system/src/main/java/com/gkhy/exam/pay/utils/config/PropertiesUtil.java
deleted file mode 100644
index e8f3038..0000000
--- a/exam-system/src/main/java/com/gkhy/exam/pay/utils/config/PropertiesUtil.java
+++ /dev/null
@@ -1,218 +0,0 @@
-/* */
-package com.gkhy.exam.pay.utils.config;
-/* */
-/* */
-
-//import com.xjhys.edu.fee.sdk.annotation.PropertiesConfig;
-
-import java.io.IOException;
-import java.io.InputStream;
-import java.lang.reflect.Field;
-import java.net.URL;
-import java.sql.Date;
-import java.text.ParseException;
-import java.text.SimpleDateFormat;
-import java.util.Properties;
-
-/* */
-/* */
-/* */
-/* */
-/* */
-/* */
-/* */
-/* */
-/* */
-/* */
-/* */
-/* */
-/* */
-/* */
-/* */
-/* */
-/* */
-/* */
-/* */
-/* */ public class PropertiesUtil
- /* */ {
- /* */ public static final String PROPERTIES_SUFFIX_NAME = "properties";
- /* */ public static final String DATE_FORMAT = "yyyy-MM-dd HH:mm:ss";
- /* */ public static final String RESOURCES_PATH = "/";
- /* */ public static final String INT_NAME = "int";
- /* */ public static final String DOUBLE_NAME = "double";
- /* */ public static final String FLOAT_NAME = "float";
- /* */ public static final String LONG_NAME = "long";
- /* */ public static final String METHOD_SET = "set";
-
- /* */
- /* */
- public static Properties loadPropertiesFile(InputStream in) throws IOException {
- /* 43 */
- Properties p = new Properties();
- /* 44 */
- p.load(in);
- /* 45 */
- return p;
- /* */
- }
-
- /* */
- /* */
- /* */
- /* */
- /* */
- /* */
- /* */
- /* */
- /* */
- public static void loadData(Object propertiesBean) throws IOException {
- /* 56 */
- if (propertiesBean == null) {
- /* */
- return;
- /* */
- }
- /* 59 */
- PropertiesConfig pc = propertiesBean.getClass().<PropertiesConfig>getAnnotation(PropertiesConfig.class);
- /* 60 */
- String fileNmae = pc.fileName();
- /* 61 */
- loadData(fileNmae, propertiesBean);
- /* */
- }
-
- /* */
- /* */
- /* */
- /* */
- /* */
- /* */
- /* */
- /* */
- /* */
- /* */
- /* */
- /* */
- public static void loadData(String fileNmae, Object propertiesBean) throws IOException {
- /* 75 */
- if (propertiesBean == null) {
- /* */
- return;
- /* */
- }
- /* 78 */
- URL url = PropertiesUtil.class.getResource("/" + fileNmae);
- /* 79 */
- InputStream openStream = url.openStream();
- /* 80 */
- Properties p = loadPropertiesFile(openStream);
- /* 81 */
- Field[] fs = propertiesBean.getClass().getDeclaredFields();
- /* 82 */
- for (int i = 0; i < fs.length; i++) {
- /* 83 */
- Field field = fs[i];
- /* 84 */
- PropertiesConfig pc = field.<PropertiesConfig>getAnnotation(PropertiesConfig.class);
- /* 85 */
- String pKey = field.getName();
- /* 86 */
- String value = null;
- /* 87 */
- if (pc != null) {
- /* 88 */
- value = p.getProperty(pc.name());
- /* */
- } else {
- /* 90 */
- value = p.getProperty(pKey);
- /* */
- }
- /* 92 */
- if (value != null) {
- /* 93 */
- field.setAccessible(true);
- /* */
- try {
- /* 95 */
- field.set(propertiesBean, conversion(value, field.getType()));
- /* 96 */
- } catch (IllegalArgumentException e) {
- /* */
- /* 98 */
- e.printStackTrace();
- /* 99 */
- } catch (IllegalAccessException e) {
- /* */
- /* 101 */
- e.printStackTrace();
- /* */
- }
- /* */
- }
- /* */
- }
- /* */
- }
-
- /* */
- /* */
- /* */
- /* */
- /* */
- /* */
- /* */
- /* */
- /* */
- /* */
- /* */
- /* */
- public static Object conversion(String value, Class<?> type) {
- /* 118 */
- if (value == null) {
- /* 119 */
- return null;
- /* */
- }
- /* 121 */
- if ("int".equals(type.getName()) || type.getName().equals(Integer.class.getName()))
- /* 122 */ return Integer.valueOf(value);
- /* 123 */
- if ("double".equals(type.getName()) || type.getName().equals(Double.class.getName()))
- /* 124 */ return Double.valueOf(value);
- /* 125 */
- if ("float".equals(type.getName()) || type.getName().equals(Float.class.getName()))
- /* 126 */ return Float.valueOf(value);
- /* 127 */
- if ("long".equals(type.getName()) || type.getName().equals(Long.class.getName()))
- /* 128 */ return Long.valueOf(value);
- /* 129 */
- if (type.getName().equals(Date.class.getName())) {
- /* 130 */
- SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
- /* */
- try {
- /* 132 */
- return format.parse(value);
- /* 133 */
- } catch (ParseException e) {
- /* */
- /* 135 */
- e.printStackTrace();
- /* */
- }
- /* */
- }
- /* */
- /* 139 */
- return value;
- /* */
- }
- /* */
-}
-
-
-/* Location: D:\jar\sign_util-1.0-SNAPSHOT.20240227.jar!\BOOT-INF\lib\SNAPSHOT-1.0.0.jar!\com\xjhys\edu\fee\sd\\utils\PropertiesUtil.class
- * Java compiler version: 8 (52.0)
- * JD-Core Version: 1.1.3
- */
\ No newline at end of file
diff --git a/exam-system/src/main/java/com/gkhy/exam/pay/utils/config/SdkConfig.java b/exam-system/src/main/java/com/gkhy/exam/pay/utils/config/SdkConfig.java
deleted file mode 100644
index 36fbf07..0000000
--- a/exam-system/src/main/java/com/gkhy/exam/pay/utils/config/SdkConfig.java
+++ /dev/null
@@ -1,99 +0,0 @@
-/* */
-package com.gkhy.exam.pay.utils.config;
-/* */
-/* */
-
-
-import java.io.File;
-import java.io.IOException;
-
-/* */
-/* */
-/* */
-/* */
-/* */
-/* */
-/* */
-/* */
-/* */
-@PropertiesConfig(fileName = "sdk.properties")
-/* */ public class SdkConfig
- /* */ {
- /* */ static {
- /* 20 */
- loadSDKProperties();
- /* */
- }
-
- /* */
- /* */
- /* */
- /* 25 */ public static final String tempPath = String.valueOf(System.getProperty("java.io.tmpdir")) + File.separator;
- /* */
- /* */
- /* */ public static int connectionRequestTimeOut;
- /* */
- /* */
- /* */ public static int connectionTimeout;
- /* */
- /* */
- /* */ public static int socketTimeOut;
- /* */
- /* */
- /* */ public static String logPath;
- /* */
- /* */
- /* */ public static String logMaxFileSize;
- /* */
- /* */
- /* */ public static String logTotalSizeCap;
- /* */
- /* */
- /* */ public static int logMaxHistory;
- /* */
- /* */ public static boolean logAdditive = true;
- /* */
- /* */
- @PropertiesConfig(name = "appId")
- /* */ public static String appId;
- /* */
- /* */
- @PropertiesConfig(name = "remote.fsweb.service")
- /* */ public static String fsServiceUrl;
- /* */
- /* */
- @PropertiesConfig(name = "remote.fsweb.public")
- /* */ public static String fsPublicUrl;
-
- /* */
- /* */
- /* */
- public static void loadSDKProperties() {
- /* */
- try {
- /* 62 */
- PropertiesUtil.loadData(new SdkConfig());
- /* */
- /* 64 */
- logPath = StringUtil.appendMsg(new String[]{tempPath, logPath});
- /* */
- /* 66 */
- fsPublicUrl = StringUtil.getUrl(fsPublicUrl);
- /* 67 */
- fsServiceUrl = StringUtil.getUrl(fsServiceUrl);
- /* 68 */
- } catch (IOException e) {
- /* 69 */
- e.printStackTrace();
- /* */
- }
- /* */
- }
- /* */
-}
-
-
-/* Location: D:\jar\sign_util-1.0-SNAPSHOT.20240227.jar!\BOOT-INF\lib\SNAPSHOT-1.0.0.jar!\com\xjhys\edu\fee\sdk\config\SdkConfig.class
- * Java compiler version: 8 (52.0)
- * JD-Core Version: 1.1.3
- */
\ No newline at end of file
diff --git a/exam-system/src/main/java/com/gkhy/exam/pay/utils/config/StringUtil.java b/exam-system/src/main/java/com/gkhy/exam/pay/utils/config/StringUtil.java
deleted file mode 100644
index 24f52bf..0000000
--- a/exam-system/src/main/java/com/gkhy/exam/pay/utils/config/StringUtil.java
+++ /dev/null
@@ -1,89 +0,0 @@
-/* */
-package com.gkhy.exam.pay.utils.config;
-
-/* */
-/* */
-/* */
-/* */
-/* */
-/* */
-/* */
-/* */
-/* */
-/* */
-/* */
-/* */
-/* */ public class StringUtil
- /* */ {
- /* */
- public static String appendMsg(String... values) {
- /* 17 */
- StringBuilder sb = new StringBuilder();
- /* 18 */
- if (values != null && values.length > 0) {
- /* 19 */
- for (int i = 0; i < values.length; i++) {
- /* 20 */
- sb.append(values[i]);
- /* */
- }
- /* */
- }
- /* 23 */
- return sb.toString();
- /* */
- }
-
- /* */
- /* */
- /* */
- /* */
- /* */
- /* */
- public static String getUrl(String url) {
- /* 31 */
- if (url == null) {
- /* 32 */
- return null;
- /* */
- }
- /* 34 */
- url = url.replaceAll("[\\t\\n\\r\\s+]", "").replaceAll("/+", "/").replaceFirst("/", "//").replaceAll("/+$", "");
- /* 35 */
- return url;
- /* */
- }
-
- /* */
- /* */
- /* */
- /* */
- /* */
- /* */
- public static boolean verificationEmpty(String value) {
- /* 43 */
- if (value == null) {
- /* 44 */
- return true;
- /* */
- }
- /* 46 */
- value = value.replaceAll("[\\t\\n\\r\\s+]", "");
- /* 47 */
- if ("".equals(value)) {
- /* 48 */
- return true;
- /* */
- }
- /* 50 */
- return false;
- /* */
- }
- /* */
-}
-
-
-/* Location: D:\jar\sign_util-1.0-SNAPSHOT.20240227.jar!\BOOT-INF\lib\SNAPSHOT-1.0.0.jar!\com\xjhys\edu\fee\sd\\utils\StringUtil.class
- * Java compiler version: 8 (52.0)
- * JD-Core Version: 1.1.3
- */
\ No newline at end of file
diff --git a/exam-system/src/main/resources/sdk.properties b/exam-system/src/main/resources/sdk.properties
deleted file mode 100644
index 7b62133..0000000
--- a/exam-system/src/main/resources/sdk.properties
+++ /dev/null
@@ -1,20 +0,0 @@
-#从连接池中获取连接的超时时间(单位:ms)
-connectionRequestTimeOut=5000
-#与服务器连接的超时时间(单位:ms)
-connectionTimeout=5000
-#从服务器获取响应数据的超时时间(单位:ms)
-socketTimeOut=10000
-#日志地址
-logPath=sdklog
-#日志文件最大值 2GB
-logMaxFileSize=2MB
-#日志总量最大值
-logTotalSizeCap=20MB
-#最大历史记录数量
-logMaxHistory=15
-#网站接入码
-appId=4896FAE0994B46B0A29237DC575C0CCD
-#非税业务平台地址
-remote.fsweb.service=http://finpt.xjcz.gov.cn/fs-service-test
-#非税支付平台地址
-remote.fsweb.public=http://finpt.xjcz.gov.cn/fs-public-test
\ No newline at end of file
diff --git a/exam-system/src/main/resources/thdjar/jit-vstk-jdk15-new-2.0.308.25.1.jar b/exam-system/src/main/resources/thdjar/jit-vstk-jdk15-new-2.0.308.25.1.jar
deleted file mode 100644
index 45ea8f9..0000000
--- a/exam-system/src/main/resources/thdjar/jit-vstk-jdk15-new-2.0.308.25.1.jar
+++ /dev/null
Binary files differ
--
Gitblit v1.9.2