修复若干bug,优化若干代码

This commit is contained in:
ladeng07
2022-05-20 21:54:20 +08:00
parent f65714f84e
commit 970f7563c0
3 changed files with 20 additions and 10 deletions
+2 -1
View File
@@ -36,7 +36,8 @@ class Work(GenericAPIView):
temp['grade'] = i
temp['data'] = serializer.data
for i in temp['data']:
i["img"] = get_path() + i["img"]
if i.get("img"):
i["img"] = get_path() + i["img"]
data['data'].append(temp)
# except Exception:
# """如果没有查到数据"""