瀏覽代碼

addr test

ming 3 年之前
父節點
當前提交
05931f9071
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      api/main.py

+ 1 - 1
api/main.py

@@ -116,7 +116,7 @@ async def get_courses(tags:List[int]):
     for row in db.query(statement):
         courses.append({'id':row['course_id'],'title':row['title'],'url':row['url']
         ,'teacher_name':['teacher_name'],'price':row['price'],'price_discount':row['price_discount'],'profile':row['profile']
-        ,'cover_img':serverADDR + row['cover_img'],'hours':row['hours'],'units':row['units']})
+        ,'cover_img':'https://'+serverADDR + row['cover_img'],'hours':row['hours'],'units':row['units']})
     return courses
 
 @app.post("/courses")