same as last commit

master
Aevann 2023-02-02 06:16:54 +02:00
parent 6a53fa2063
commit 6ef6d06984
1 changed files with 6 additions and 2 deletions

View File

@ -1349,8 +1349,10 @@ if KOFI_TOKEN:
def gumroad():
data = request.values
ip = request.headers.get('CF-Connecting-IP')
if ip != '34.193.146.117':
print('\n\n\n-----------------------\n\n\ngumroad: ' + ip + '\n\n\n-----------------------\n\n\n')
if ip == '34.193.146.117':
print('\n\n\n-----------------------\n\n\ngumroad success: ' + ip + '\n\n\n-----------------------\n\n\n', flush=True)
else:
print('\n\n\n-----------------------\n\n\ngumroad fail: ' + ip + '\n\n\n-----------------------\n\n\n', flush=True)
abort(400)
id = data['sale_id']
@ -1373,6 +1375,8 @@ def gumroad():
if user:
claim_rewards(user)
print("/gumroad done", flush=True)
return ''