axcwg 3 月之前
父節點
當前提交
8a0050c7bb
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      main.js

+ 1 - 1
main.js

@@ -160,7 +160,7 @@ function Submit(req, res) {
         }catch(err){
         }catch(err){
 
 
         }
         }
-        if (req.body.email !== undefined) {
+        if (req.body.email !== undefined && req.body.email !== "") {
             console.log(req.body.email)
             console.log(req.body.email)
             transporter.sendMail({
             transporter.sendMail({
                 from: '"xiey0" <xiey0@qq.com>',
                 from: '"xiey0" <xiey0@qq.com>',