HalfdogStudio / wechat-user-bot

正在组装中的微信机器人
GNU General Public License v2.0
213 stars 55 forks source link

收到消息的换行处理 #55

Open reverland opened 8 years ago

reverland commented 8 years ago

收到消息的换行处理还有问题,而发出消息的换行处理似乎正确

info: [狂风落尽深红色,卧时忆歌达沙壁说]{    "node": {        "port": 3000    },    "redis": {        "host": "redisdb",        "pass": null,        "port": 6379    },    "mongo": {        "url": "mongodb://localhost:27017/octopusdb",        "options": {            "auto_reconnect": true,            "poolSize": 4,            "socketOptions": {                "keepAlive": 1            }        }    },    "log4js": {        "appenders": [{            "type": "console"        }]    },    "tuling123": {        "turingRobotApiKey": "xxx",        "turingBaiduRobotApiKey": "xxx",        "turingBaiduRobotKey": "xxx"    },    "youtu": {        "appId": "xxxxx",        "secretId": "xxx",        "secretKey": "xxxx",        "userId": "xxxxx"    }}
发送->  {
    "node": {
        "port": 3000
    },
    "redis": {
        "host": "redisdb",
        "pass": null,
        "port": 6379
    },
    "mongo": {
        "url": "mongodb://localhost:27017/octopusdb",
        "options": {
            "auto_reconnect": true,
            "poolSize": 4,
            "socketOptions": {
                "keepAlive": 1
            }
        }
    },
    "log4js": {
        "appenders": [{
            "type": "console"
        }]
    },
    "tuling123": {
        "turingRobotApiKey": "xxxxx",
        "turingBaiduRobotApiKey": "xxx",
        "turingBaiduRobotKey": "xxx"
    },
    "youtu": {
        "appId": "xxxxx",
        "secretId": "xxxxxx",
        "secretKey": "xxxx",
        "userId": "xx"
    }
}