Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
LLM-Filter
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
2026_NGIT
LLM-Filter
Commits
0cea2c6c
Commit
0cea2c6c
authored
Nov 14, 2025
by
uuo00_n
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(api): 将绑定数据中的_id字段转换为字符串
确保返回的绑定数据中所有ObjectId字段都被转换为字符串,保持数据格式一致
parent
b5ec3433
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
0 deletions
+1
-0
bindings.cpython-39.pyc
app/api/v1/__pycache__/bindings.cpython-39.pyc
+0
-0
bindings.py
app/api/v1/bindings.py
+1
-0
No files found.
app/api/v1/__pycache__/bindings.cpython-39.pyc
View file @
0cea2c6c
No preview for this file type
app/api/v1/bindings.py
View file @
0cea2c6c
...
...
@@ -41,6 +41,7 @@ async def me(current_user: dict = Depends(get_current_active_user)):
b
=
await
get_binding_by_account
(
str
(
current_user
[
"_id"
]))
if
not
b
:
raise
HTTPException
(
status_code
=
404
,
detail
=
"未绑定人物"
)
b
[
"_id"
]
=
str
(
b
[
"_id"
])
b
[
"account_id"
]
=
str
(
b
[
"account_id"
])
b
[
"person_id"
]
=
str
(
b
[
"person_id"
])
return
b
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment