fit: fix debug
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -3,3 +3,4 @@ image.jpg
|
||||
__pycache__/
|
||||
demo.__pycache__
|
||||
uploads
|
||||
demo.py
|
||||
|
||||
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user