Skip to content

Commit

Permalink
Update aliyun.py
Browse files Browse the repository at this point in the history
  • Loading branch information
wd210010 authored Oct 19, 2023
1 parent 0bc123a commit ba43599
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion aliyun.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,19 @@ def Push(contents):
def daily_check(access_token):
url = 'https://member.aliyundrive.com/v1/activity/sign_in_list'
headers = {
'Authorization': access_token
'Authorization': access_token,
'Content-Type': 'application/json'
}
response = requests.post(url=url, headers=headers, json={}).text
result = json.loads(response)
sign_days = result['result']['signInCount']
data ={
'signInDay':sign_days
}
url_reward ='https://member.aliyundrive.com/v1/activity/sign_in_reward'
resp2 = requests.post(url=url_reward, headers=headers, data=json.dumps(data))
result2=json.loads(resp2.text)
# print(result2)
if 'success' in result:
print('签到成功')
for i, j in enumerate(result['result']['signInLogs']):
Expand Down

0 comments on commit ba43599

Please sign in to comment.