修复:sex 字段类型统一为整数(0=保密 1=男 2=女)
- 生产库 sex 列为 int,之前错误传入中文字符串 - AuthController 注册时直接保存整数 - UpdateProfileRequest 验证改为 in:0,1,2 - 设置弹窗 select value 改为整数
This commit is contained in:
@@ -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;">
|
||||
|
||||
Reference in New Issue
Block a user