fit: fix debug

This commit is contained in:
2025-12-16 23:03:32 +08:00
parent 66199c8130
commit 70bc35cb64
2 changed files with 15 additions and 14 deletions

1
.gitignore vendored
View File

@@ -3,3 +3,4 @@ image.jpg
__pycache__/
demo.__pycache__
uploads
demo.py

View File

@@ -154,19 +154,19 @@ class XBXS:
await image.read(),
"image/jpeg", # 假设是 jpeg 格式,按需修改
)
# resp = await self.client.post(
# "/xiaobei-api/student/know/updateStudentKnow",
# data={
# "address": address,
# "remark": remark,
# "knowingId": knowingID,
# "location": location,
# # "location": "106.5346788194445:29.343291015625",
# "size": len(images),
# },
# files=files,
# )
# resp.raise_for_status()
resp = await self.client.post(
"/xiaobei-api/student/know/updateStudentKnow",
data={
"address": address,
"remark": remark,
"knowingId": knowingID,
"location": location,
# "location": "106.5346788194445:29.343291015625",
"size": len(images),
},
files=files,
)
resp.raise_for_status()
async def get_student_info_cached(self):
cached = get_student_by_token(str(self.token))