BAOLH
2025-08-13 c4cdf820535ad40aebad257c6f39712c8c9f8644
Merge branch 'wcd-2411-update' into wcd
2 files modified
10 ■■■■■ changed files
eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/temp/service/impl/WechatRobotServiceImpl.java 8 ●●●●● patch | view | raw | blame | history
eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/temp/service/impl/WechatSendHistoryServiceImpl.java 2 ●●●●● patch | view | raw | blame | history
eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/temp/service/impl/WechatRobotServiceImpl.java
@@ -60,13 +60,15 @@
            String decryptedMessage = wxcpt.DecryptRobotMsg(msgSignature, timestamp, nonce, jsonObject.toString());
            System.out.println("接收到机器人发送的加密消息:" + jsonObject.toJSONString());
            System.out.println("接收到机器人发送的解密后消息:" + decryptedMessage);
            return wxcpt.EncryptMsg("消息已收到", "", nonce);
            JSONObject decryptedMessageJson =  JSONObject.parseObject(decryptedMessage);
            if (decryptedMessageJson.getString("msgtype").equals("text")) {
                return wxcpt.EncryptRobotMsg("消息已收到", "", nonce);
            }
        } catch (Exception e) {
            e.printStackTrace();
            try {
                if (wxcpt != null) {
                    return wxcpt.EncryptMsg("消息接收出现异常,请联系管理员处理 o(╥﹏╥o...)", "", nonce);
                    return wxcpt.EncryptRobotMsg("消息接收出现异常,请联系管理员处理 o(╥﹏╥o...)", "", nonce);
                }
            } catch (AesException aesException) {
                aesException.printStackTrace();
eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/temp/service/impl/WechatSendHistoryServiceImpl.java
@@ -241,7 +241,7 @@
     */
    private static void fixJsonStructure(JSONObject jsonObject) {
        // 定义需要确保为列表的字段名
        String[] listFields = {"ProcessList", "NodeList", "Details", "Notifyer", "SubNodeList", "SpRecord" };
        String[] listFields = {"ProcessList", "NodeList", "Details", "Notifyer", "SubNodeList", "SpRecord", "Comments" };
        for (String fieldName : listFields) {
            if (jsonObject.has(fieldName)) {