From a7501803a3ca43310e57a5dd912e5047919c2e43 Mon Sep 17 00:00:00 2001
From: 彭雪彬 <1724387007@qq.com>
Date: Tue, 15 Jul 2025 15:26:55 +0800
Subject: [PATCH] Merge branch 'xin' into pxb

---
 oying-system/src/main/java/com/oying/modules/hwc/service/impl/SwiftPassServiceImpl.java |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/oying-system/src/main/java/com/oying/modules/hwc/service/impl/SwiftPassServiceImpl.java b/oying-system/src/main/java/com/oying/modules/hwc/service/impl/SwiftPassServiceImpl.java
index 4a63f07..e0a7063 100644
--- a/oying-system/src/main/java/com/oying/modules/hwc/service/impl/SwiftPassServiceImpl.java
+++ b/oying-system/src/main/java/com/oying/modules/hwc/service/impl/SwiftPassServiceImpl.java
@@ -1,7 +1,6 @@
 package com.oying.modules.hwc.service.impl;
 
 import com.alibaba.fastjson2.JSONObject;
-import com.google.gson.Gson;
 import com.oying.exception.BadRequestException;
 import com.oying.modules.hwc.domain.HwcResponse;
 import com.oying.modules.hwc.service.SwiftPassService;
@@ -103,8 +102,7 @@
                     throw new BadRequestException("验证签名错误");
                 } else {
                     if ("0".equals(resultMap.get("status")) && "0".equals(resultMap.get("result_code"))) {
-                        Gson gson = new Gson();
-                        return gson.fromJson(resultMap.get("pay_info"), HwcResponse.class);
+                        return JSONObject.parseObject(resultMap.get("pay_info"), HwcResponse.class);
                     } else {
                         throw new BadRequestException(resultMap.get("err_code") + " : " + resultMap.get("err_msg") + "\n" +
                                 resultMap.get("status") + " : " + resultMap.get("message"));

--
Gitblit v1.9.3