BAOLH
2025-02-19 b1d04635f594d7897a3cbf874a7eb3058e655814
eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/temp/service/impl/WechatSendHistoryServiceImpl.java
@@ -24,6 +24,8 @@
import me.zhengjie.modules.temp.service.dto.WechatSendHistoryQueryCriteria;
import me.zhengjie.modules.temp.service.mapstruct.WechatSendHistoryMapper;
import me.zhengjie.utils.weixin.WXBizJsonMsgCrypt;
import org.json.JSONObject;
import org.json.XML;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.data.domain.Page;
@@ -143,7 +145,8 @@
            beforeHistory.setContent(callbackXmlData);
            wechatSendHistoryRepository.save(beforeHistory);
            String decryptedMessage = wxcpt.DecryptMsg(msgSignature, timestamp, nonce, callbackXmlData);
            JSONObject json = XML.toJSONObject(callbackXmlData);
            String decryptedMessage = wxcpt.DecryptMsg(msgSignature, timestamp, nonce, json.toString());
            WechatSendHistory afterHistory = new WechatSendHistory();
            afterHistory.setContent(decryptedMessage);
            wechatSendHistoryRepository.save(afterHistory);