From 604d164569678c526c9c3e6f806861152f08631d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=90=E9=A3=9E=E6=B4=8B?= <15778543+xufeiyang6017@user.noreply.gitee.com> Date: Fri, 30 Jan 2026 10:11:12 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0reason=E5=AD=97=E6=AE=B5?= =?UTF-8?q?=E5=88=B0User=E6=A8=A1=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server-example/server-mysql.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server-example/server-mysql.js b/server-example/server-mysql.js index dfffffa..5954461 100644 --- a/server-example/server-mysql.js +++ b/server-example/server-mysql.js @@ -1209,7 +1209,7 @@ User.init({ authorized_region: { type: DataTypes.TEXT // 存储用户位置信息的JSON字符串 }, - reasonforfailure: { + reason: { type: DataTypes.TEXT // 审核失败原因 }, agreement: { @@ -2474,7 +2474,7 @@ app.post('/api/user/validate', async (req, res) => { // 查找用户 const user = await User.findOne({ where: { openid }, - attributes: ['openid', 'userId', 'name', 'avatarUrl', 'phoneNumber', 'type', 'partnerstatus', 'reasonforfailure', 'idcardstatus'] + attributes: ['openid', 'userId', 'name', 'avatarUrl', 'phoneNumber', 'type', 'partnerstatus', 'reason', 'idcardstatus'] }); if (!user) { @@ -7932,7 +7932,7 @@ app.post('/api/settlement/resubmit/:applicationId', async (req, res) => { // 将用户的partnerstatus设置为Null await user.update({ partnerstatus: null, - reasonforfailure: null + reason: null }); res.json({