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