diff --git a/cloud.js b/cloud.js index 3be9915d8..48784bd0d 100644 --- a/cloud.js +++ b/cloud.js @@ -7,11 +7,18 @@ AV.Cloud.afterSave('Comment', function (request) { // 发送博主通知邮件 mail.notice(currentComment); // AT评论通知 - let rid = currentComment.get('rid'); - if (!rid) { + // 获取评论内容 + var comm = currentComment.get('comment'); + // 从评论内容中提取出a标签的href属性值 + var h = comm.match(/