This commit is contained in:
chaosBreaking
2019-10-15 10:47:42 +08:00
parent 9c55569648
commit c3fe5bc708

View File

@@ -197,7 +197,7 @@ module.exports = {
maxFileSize: 20 * 1024 * 1024, // 限制文件体积最大20m maxFileSize: 20 * 1024 * 1024, // 限制文件体积最大20m
keepExtensions: true, keepExtensions: true,
encoding: 'utf-8' encoding: 'utf-8'
}); }) || {};
const { pic1, pic2 } = form.data; const { pic1, pic2 } = form.data;
const { realname, nation, idType, idNo } = form.fields || {}; const { realname, nation, idType, idNo } = form.fields || {};
if (!pic1 || !pic2 || !realname || !idNo) return res.json({ if (!pic1 || !pic2 || !realname || !idNo) return res.json({