forked from rDrama/rDrama
same as last commit
parent
6a53fa2063
commit
6ef6d06984
|
@ -1349,8 +1349,10 @@ if KOFI_TOKEN:
|
||||||
def gumroad():
|
def gumroad():
|
||||||
data = request.values
|
data = request.values
|
||||||
ip = request.headers.get('CF-Connecting-IP')
|
ip = request.headers.get('CF-Connecting-IP')
|
||||||
if ip != '34.193.146.117':
|
if ip == '34.193.146.117':
|
||||||
print('\n\n\n-----------------------\n\n\ngumroad: ' + ip + '\n\n\n-----------------------\n\n\n')
|
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)
|
abort(400)
|
||||||
|
|
||||||
id = data['sale_id']
|
id = data['sale_id']
|
||||||
|
@ -1373,6 +1375,8 @@ def gumroad():
|
||||||
if user:
|
if user:
|
||||||
claim_rewards(user)
|
claim_rewards(user)
|
||||||
|
|
||||||
|
print("/gumroad done", flush=True)
|
||||||
|
|
||||||
return ''
|
return ''
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue