Your Name 3 年之前
父节点
当前提交
7e42061419
共有 2 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      step_question/apis/newbot.py
  2. 二进制
      step_question/apis/static/images/finalcoupon.png

+ 1 - 1
step_question/apis/newbot.py

@@ -57,8 +57,8 @@ handler = WebhookHandler('58a73d69c3ad6416e0b465e64c30526a')
 
 @app.get("/msg/{item_id}")
 async def coffee_msg(item_id):
-    True
     line_bot_api.push_message(item_id, TextSendMessage(text='開啟下方完整券樣(密碼9888)至櫃台掃碼兌換。https://txp.rs/v/EvX69b4Xq9'))
+    line_bot_api.push_message(item_id, ImageSendMessage('http://q.ptt.cx/a1/images/finalcoupon.png', 'http://q.ptt.cx/a1/images/finalcoupon.png') )
     return {"code":"ok" }
 
 @app.post('/callback')

二进制
step_question/apis/static/images/finalcoupon.png