修复:sex 字段类型统一为整数(0=保密 1=男 2=女)

- 生产库 sex 列为 int,之前错误传入中文字符串
- AuthController 注册时直接保存整数
- UpdateProfileRequest 验证改为 in:0,1,2
- 设置弹窗 select value 改为整数
This commit is contained in:
2026-02-26 22:57:30 +08:00
parent 6a596a13aa
commit bc80c42fa3
4 changed files with 13 additions and 9 deletions
+3 -3
View File
@@ -445,9 +445,9 @@
<label style="font-size:12px; width:50px; text-align:right;">性别:</label>
<select id="set-sex"
style="flex:1; padding:5px; border:1px solid #ccc; border-radius:4px; font-size:12px;">
<option value="" {{ Auth::user()->sex === '男' ? 'selected' : '' }}></option>
<option value="" {{ Auth::user()->sex === '女' ? 'selected' : '' }}></option>
<option value="保密" {{ Auth::user()->sex === '保密' ? 'selected' : '' }}>保密</option>
<option value="1" {{ Auth::user()->sex == 1 ? 'selected' : '' }}></option>
<option value="2" {{ Auth::user()->sex == 2 ? 'selected' : '' }}></option>
<option value="0" {{ Auth::user()->sex == 0 ? 'selected' : '' }}>保密</option>
</select>
</div>
<div style="display:flex; align-items:center; gap:8px;">