|
@@ -299,6 +299,7 @@ async def nftdrops(userModel : models.NftDrops):
|
|
|
# input對應
|
|
|
eventid = '1'
|
|
|
nftid = '101'
|
|
|
+ nftid2 = '102'
|
|
|
userid = userModel.userid
|
|
|
email = userModel.email
|
|
|
|
|
@@ -306,6 +307,7 @@ async def nftdrops(userModel : models.NftDrops):
|
|
|
if not table3.find_one(userid=userid):
|
|
|
# 新增資料
|
|
|
table3.insert(dict(eventid=eventid, nftid=nftid, userid=userid, email=email))
|
|
|
+ table3.insert(dict(eventid=eventid, nftid=nftid2, userid=userid, email=email))
|
|
|
db.close()
|
|
|
return "新增成功"
|
|
|
# 如果userid存在,回傳通知
|