Your Name 3 年之前
父節點
當前提交
36c365896c
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      step_question/apis/main.py

+ 2 - 2
step_question/apis/main.py

@@ -213,10 +213,10 @@ async def coffee_set(item_id: int):
 @app.post("/v_lst")
 async def v_lst():
     db = dataset.connect('mysql://choozmo:pAssw0rd@db.ptt.cx:3306/hhh?charset=utf8mb4')
-    cursor=db.query('select id,email from hhh.step_questions')
+    cursor=db.query('SELECT id,email,name,phone,h_class,type,size,time_stamp FROM hhh.deco_request;')
     result=[]
     for c in cursor:
-        result.append({"id":c['id'],'email':c['email'],"name":"\u4f59\u96c5\u96ef","phone":"0911132431","area":"\u9ad8\u96c4\u5e02","type":"\u4e2d\u53e4\u5c4b","pin":"11~20 \u576a","create_time":"2020-09-16 01:50:00"})
+        result.append({"id":c['id'],'email':c['email'],"name":c['name'],"phone":c['phone'],"h_class":c['h_class'],"type":c['type'],"size":c['size'],"create_time":c['time_stamp']})
     return result
 
 @app.get("/coffee")