TDuckCloud / tduck-platform

为企业提供「免费」表单问卷能力,「开箱即用」快速赋能业务 A questionnaire system that can be privatized and deployed - 填鸭表单问卷系统(tduck-survey-form)
https://www.tduckcloud.com
MIT License
1.04k stars 140 forks source link

管理员用户报错添加用户报错 #15

Closed 777nx closed 1 year ago

777nx commented 1 year ago

版本信息 是否是最新代码:是

演示环境是否有该问题? 演示环境地址:https://form.777nx.cn 提供你复现出该问题的演示环境地址

回显步骤 我操作了用户管理添加用户 然后出现了sql语句错误

报错信息 、截图 截图 image

Error updating database. Cause: com.mysql.cj.jdbc.exceptions.MysqlDataTruncation: Data truncation: Data too long for column 'avatar' at row 1 ### The error may exist in com/tduck/cloud/account/mapper/UserMapper.java (best guess) ### The error may involve com.tduck.cloud.account.mapper.UserMapper.insert-Inline ### The error occurred while setting parameters ### SQL: INSERT INTO ac_user ( name, avatar, gender, phone_number, email, password, password_type, create_time, update_time ) VALUES ( ?, ?, ?, ?, ?, ?, ?, ?, ? ) ### Cause: com.mysql.cj.jdbc.exceptions.MysqlDataTruncation: Data truncation: Data too long for column 'avatar' at row 1 ; Data truncation: Data too long for column 'avatar' at row 1; nested exception is com.mysql.cj.jdbc.exceptions.MysqlDataTruncation: Data truncation: Data too long for column 'avatar' at row 1