DesertsP / Valine-Admin

🔥A simple comment system based on LeanCloud and Valine.
https://deserts.io/valine-admin-document/
MIT License
715 stars 471 forks source link

无法发送邮件 #128

Open BHwlm opened 3 years ago

BHwlm commented 3 years ago

报错,log为 [2020-12-12T14:28:11.980000000Z][system] [Node.js] 使用 Node.js v11.15.0, Node SDK 3.3.2, JavaScript SDK 3.11.1 [2020-12-12T14:28:14.257570600Z][instance:web1] Node app is running on port: 3000 [2020-12-12T14:28:15.010000000Z][system] 实例启动成功:{"runtime":"nodejs-v11.15.0","version":"3.3.2"} [2020-12-12T14:28:15.049000000Z][system] 正在更新云函数信息 ... [2020-12-12T14:28:15.064000000Z][system] 部署完成:1 个实例部署成功 [2020-12-12T14:28:15.635323600Z][instance:web1] SMTP邮箱配置正常! [2020-12-12T14:29:37.416542700Z][instance:web1] IP: 210.0.158.68 [2020-12-12T14:29:37.420679200Z][instance:web1] LeanEngine: /Comment/afterSave: 500: ReferenceError: PARENT_NICK is not defined [2020-12-12T14:29:37.420730600Z][instance:web1] at eval (eval at exports.notice (/home/leanengine/app/utilities/send-mail.js:40:24), :1:374) [2020-12-12T14:29:37.420748800Z][instance:web1] at Object.exports.notice (/home/leanengine/app/utilities/send-mail.js:40:24) [2020-12-12T14:29:37.420761600Z][instance:web1] at sendNotification (/home/leanengine/app/cloud.js:15:14) [2020-12-12T14:29:37.420769500Z][instance:web1] at /home/leanengine/app/cloud.js:45:12 [2020-12-12T14:29:37.420777500Z][instance:web1] at Promise (/home/leanengine/app/node_modules/leanengine/lib/leanengine.js:356:23) [2020-12-12T14:29:37.420785200Z][instance:web1] at new Promise () [2020-12-12T14:29:37.420793300Z][instance:web1] at promiseTry (/home/leanengine/app/node_modules/leanengine/lib/leanengine.js:354:10) [2020-12-12T14:29:37.420801000Z][instance:web1] at Promise (/home/leanengine/app/node_modules/leanengine/lib/leanengine.js:249:7) [2020-12-12T14:29:37.420808700Z][instance:web1] at new Promise () [2020-12-12T14:29:37.420816100Z][instance:web1] at callClassHook (/home/leanengine/app/node_modules/leanengine/lib/leanengine.js:237:10) [2020-12-12T14:29:37.420823800Z][instance:web1] at promiseTry (/home/leanengine/app/node_modules/leanengine/lib/leanengine.js:104:16) [2020-12-12T14:29:37.420831200Z][instance:web1] at Promise (/home/leanengine/app/node_modules/leanengine/lib/leanengine.js:356:23) [2020-12-12T14:29:37.420839000Z][instance:web1] at new Promise () [2020-12-12T14:29:37.420846300Z][instance:web1] at promiseTry (/home/leanengine/app/node_modules/leanengine/lib/leanengine.js:354:10) [2020-12-12T14:29:37.420854000Z][instance:web1] at /home/leanengine/app/node_modules/leanengine/lib/leanengine.js:86:5 [2020-12-12T14:29:37.420861400Z][instance:web1] at call (/home/leanengine/app/node_modules/connect/index.js:239:7) [2020-12-12T14:29:37.501291000Z][instance:web1] 垃圾评论检测完成,放行~