diff --git a/packages/steedos-plugin-qywx/src/qywx/api.js b/packages/steedos-plugin-qywx/src/qywx/api.js
index 070348599e..562d858d80 100644
--- a/packages/steedos-plugin-qywx/src/qywx/api.js
+++ b/packages/steedos-plugin-qywx/src/qywx/api.js
@@ -167,6 +167,7 @@ router.get("/api/qiyeweixin/auth_login", async function (req, res, next) {
// res.write('
请联系管理员配置企业微信工作区ID和用户ID...
');
return res.end('');
}
+ // console.log("user: ",user);
if (userId && authToken) {
if (user.user != userId) {
// console.log("userId: ",userId);
diff --git a/packages/steedos-plugin-qywx/src/qywx/notifications.js b/packages/steedos-plugin-qywx/src/qywx/notifications.js
index 07b986b8b5..e539e2e8b3 100644
--- a/packages/steedos-plugin-qywx/src/qywx/notifications.js
+++ b/packages/steedos-plugin-qywx/src/qywx/notifications.js
@@ -60,14 +60,16 @@ module.exports = {
if (payload.related_to) {
text = options.text;
}
-
+ // 替换/为'/'
+ let rg = new RegExp("/","g")
+
let msg = {
"touser": qywx_userId,
"msgtype": "textcard",
"agentid": agentId,
"textcard": {
- "title": title,
- "description": text,
+ "title": title.replace(rg,'/'),
+ "description": text.replace(rg,'/'),
"url": url,
"btntxt": "详情"
},