Your Name 3 tahun lalu
induk
melakukan
7e42061419
2 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      step_question/apis/newbot.py
  2. TEMPAT SAMPAH
      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}")
 @app.get("/msg/{item_id}")
 async def coffee_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, 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" }
     return {"code":"ok" }
 
 
 @app.post('/callback')
 @app.post('/callback')

TEMPAT SAMPAH
step_question/apis/static/images/finalcoupon.png