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({