forked from MarseyWorld/MarseyWorld
same as last commit
parent
6a53fa2063
commit
6ef6d06984
|
@ -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 ''
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue