Преглед на файлове

Merge branch 'master' of http://git.choozmo.com:3000/choozmo/ArkCard-Linebot

Mike преди 3 години
родител
ревизия
56775d3c19
променени са 6 файла, в които са добавени 3 реда и са изтрити 3 реда
  1. BIN
      ArkCard-web/img/nft/gift_1.png
  2. BIN
      ArkCard-web/img/nft/gift_2.png
  3. BIN
      ArkCard-web/img/nft/gift_3.png
  4. BIN
      ArkCard-web/img/nft/gift_4.png
  5. BIN
      ArkCard-web/img/nft/gift_5.png
  6. 3 3
      main.py

BIN
ArkCard-web/img/nft/gift_1.png


BIN
ArkCard-web/img/nft/gift_2.png


BIN
ArkCard-web/img/nft/gift_3.png


BIN
ArkCard-web/img/nft/gift_4.png


BIN
ArkCard-web/img/nft/gift_5.png


+ 3 - 3
main.py

@@ -260,7 +260,7 @@ def shop(userid):
     # db connect
     db = dataset.connect('mysql://choozmo:pAssw0rd@db.ptt.cx:3306/arkcard?charset=utf8mb4')
 
-    sql = 'SELECT * FROM arkcard.nft WHERE userid IS NULL OR userid="" LIMIT 5'
+    sql = 'SELECT DISTINCT title FROM arkcard.nft WHERE userid IS NULL OR userid="" LIMIT 5'
     result = db.query(sql)
     rows = {}
     i = 0
@@ -299,8 +299,8 @@ async def nftdrops(userModel : models.NftDrops):
 
     # input對應
     eventid = '1'
-    nftid = '101'
-    nftid2 = '102'
+    nftid = '1001'
+    nftid2 = '1002'
     userid = userModel.userid
     email = userModel.email