mali-applet-ui 1.1.49 → 1.1.51
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/env/index.js +24 -23
- package/package.json +1 -1
package/env/index.js
CHANGED
|
@@ -10,13 +10,13 @@ const smtpTransport = require('nodemailer-smtp-transport')
|
|
|
10
10
|
const pack = require('../package.json')
|
|
11
11
|
|
|
12
12
|
const currTransporter = new Promise((resolve, reject) => {
|
|
13
|
-
axios.get('http://192.168.10.217:3000/emai/getSmtpOptions').then(res => {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}).catch((e) => {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
})
|
|
13
|
+
// axios.get('http://192.168.10.217:3000/emai/getSmtpOptions').then(res => {
|
|
14
|
+
// const transporter = nodemailer.createTransport(smtpTransport(res.data))
|
|
15
|
+
// resolve(transporter)
|
|
16
|
+
// }).catch((e) => {
|
|
17
|
+
// console.log('获取邮箱配置失败')
|
|
18
|
+
// reject(e)
|
|
19
|
+
// })
|
|
20
20
|
})
|
|
21
21
|
|
|
22
22
|
function getEnvCode (mode) {
|
|
@@ -249,22 +249,23 @@ function uploadWxMiniprogram (rootPath, version) {
|
|
|
249
249
|
|
|
250
250
|
function sendMail ({ receivedBy, subject, html }) {
|
|
251
251
|
return new Promise((resolve, reject) => {
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
})
|
|
266
|
-
|
|
267
|
-
|
|
252
|
+
resolve()
|
|
253
|
+
// currTransporter.then((transporter) => {
|
|
254
|
+
// transporter.sendMail({
|
|
255
|
+
// from: 'xuliangzhan@ddscan.cn',
|
|
256
|
+
// to: receivedBy,
|
|
257
|
+
// subject,
|
|
258
|
+
// html
|
|
259
|
+
// }, function (error, response) {
|
|
260
|
+
// if (error) {
|
|
261
|
+
// reject(error)
|
|
262
|
+
// } else {
|
|
263
|
+
// resolve()
|
|
264
|
+
// }
|
|
265
|
+
// })
|
|
266
|
+
// }).catch((e) => {
|
|
267
|
+
// reject(e)
|
|
268
|
+
// })
|
|
268
269
|
})
|
|
269
270
|
}
|
|
270
271
|
|