|
@@ -262,19 +262,19 @@ async def buy(userModel : models.BuyNft):
|
|
|
db.close()
|
|
|
return "您已購買成功!"
|
|
|
|
|
|
-@app.post("/callevent")
|
|
|
-async def callevent(userModel: models.callBack):
|
|
|
- """
|
|
|
- 事件會用application/json和POST方式打到指定位址, 內容基本包含
|
|
|
- {
|
|
|
- "type": "xxx", // 事件類型, 字串
|
|
|
- "data": {} // 事件內容資料
|
|
|
- }
|
|
|
- """
|
|
|
- str1 = userModel.type
|
|
|
- dict1 = userModel.data
|
|
|
- result = str1, dict1
|
|
|
- return result
|
|
|
+# @app.post("/callevent")
|
|
|
+# async def callevent(userModel: models.callBack):
|
|
|
+# """
|
|
|
+# 事件會用application/json和POST方式打到指定位址, 內容基本包含
|
|
|
+# {
|
|
|
+# "type": "xxx", // 事件類型, 字串
|
|
|
+# "data": {} // 事件內容資料
|
|
|
+# }
|
|
|
+# """
|
|
|
+# str1 = userModel.type
|
|
|
+# dict1 = userModel.data
|
|
|
+# result = str1, dict1
|
|
|
+# return result
|
|
|
|
|
|
if __name__ == '__main__':
|
|
|
uvicorn.run("main:app", host="0.0.0.0", port=8228, reload=True,ssl_context=('/etc/letsencrypt/live/ark.cards/fullchain.pem', '/etc/letsencrypt/live/ark.cards/privkey.pem'))
|