Skip to content

Commit a5dcadc

Browse files
committed
hotfix sendAtMail
1 parent cdf6ff2 commit a5dcadc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

services/mail.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,10 @@ exports.sendReplyMail = function (who, msg) {
111111
* @param {Object} msg 发送的消息对象
112112
*/
113113
exports.sendAtMail = function (who, msg) {
114+
if (!msg.topic || !msg.reply) {
115+
return;
116+
}
117+
114118
var from = config.mail_opts.auth.user;
115119
var to = who;
116120
var subject = config.name + ' 新消息';

0 commit comments

Comments
 (0)