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__/ __pycache__/
demo.__pycache__ demo.__pycache__
uploads uploads
demo.py

View File

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