Browse Source

🐞 fix: 修复工单编号读取异常的问题

Pchen. 1 month ago
parent
commit
7f4b2d19bc
1 changed files with 1 additions and 1 deletions
  1. 1 1
      apis/Kefu/Order/CreateOrder.js

+ 1 - 1
apis/Kefu/Order/CreateOrder.js

@@ -89,7 +89,7 @@ class CreateOrder extends API {
 
 
                 for (const email of emails) {
                 for (const email of emails) {
                     if(!email) break
                     if(!email) break
-                    await EmailTemplate.orderNewReply(email, { id: r.insertId, content, files })
+                    await EmailTemplate.orderNewReply(email, { id: r.insertId || id, content, files })
                 }
                 }
             } else {
             } else {
                 return res.json({ ...BaseStdResponse.ERR, msg: '提交工单失败!数据库错误' })
                 return res.json({ ...BaseStdResponse.ERR, msg: '提交工单失败!数据库错误' })