From c3fe5bc7080164cc10ae5a172fd71ea033e7e05f Mon Sep 17 00:00:00 2001 From: chaosBreaking Date: Tue, 15 Oct 2019 10:47:42 +0800 Subject: [PATCH] fix --- src/modules/user/user.controller.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/user/user.controller.js b/src/modules/user/user.controller.js index c5f5b02..2ccba61 100644 --- a/src/modules/user/user.controller.js +++ b/src/modules/user/user.controller.js @@ -197,7 +197,7 @@ module.exports = { maxFileSize: 20 * 1024 * 1024, // 限制文件体积最大20m keepExtensions: true, encoding: 'utf-8' - }); + }) || {}; const { pic1, pic2 } = form.data; const { realname, nation, idType, idNo } = form.fields || {}; if (!pic1 || !pic2 || !realname || !idNo) return res.json({