Introduction - Overview of Solutions
Due to the continuous upgrades of Aliyun Drive, the automatic check-in solution has a limited lifespan. It is highly likely that it may have expired by the time you read this article, so please test it yourself. If it is no longer effective, please leave a message and contact me. If the automatic check-in solution is still viable, I will update it.
Use GitHub Action for Automatic Check-In#
GitHub address: aliyun-auto-signin
User guide: How-To-Use-Action
Note: The author also provides a Pro plan, but since I haven't used it, I won't evaluate it. Please judge for yourself.
Note: Although GitHub Action has free usage time every month, excessive use may result in account suspension.
Use Qinglong Panel for Automatic Check-In#
Qinglong Panel GitHub address: qinglong
Aliyun Drive automatic check-in script address: aliyundriveDailyCheck
This solution requires you to install Qinglong Panel and set up Aliyun Drive automation. For specific installation instructions, please refer to the official documentation.
Use Tampermonkey Script for Check-In#
Note: This solution removes automatic check-in and changes it to manual check-in. You need to open the relevant Aliyun Drive links every day.
Script link: Aliyun Drive Check-In
You need to install a browser extension similar to Tampermonkey and then install this script to use it.
Use Kingsoft Docs for Automatic Check-In#
This method uses the "Efficiency -> Advanced Development -> AirScript Script Editor" to perform automatic check-in.
Script code:
var myDate = new Date();
var data_time = myDate.toLocaleDateString()
function sleep(d){
for(var t = Date.now();Date.now() - t <= d;);
}
var value= ""
for (let ii = 2; ii <= 20; ii++){
dyg = "A"+ii
var refresh_token = Application.Range(dyg).Text
if(refresh_token != ""){
// Send network request to get token
let data = HTTP.post("https://auth.aliyundrive.com/v2/account/token",
JSON.stringify({
"grant_type": "refresh_token",
"refresh_token":refresh_token
})
)
data = data.json()
var access_token = data['access_token']
var phone = data["user_name"]
if (access_token == undefined){
var value ="Token value in cell【"+dyg+"】is incorrect, program execution failed, please copy the correct token value again"+"\n"
}else{
try{
var access_token2 = 'Bearer '+access_token
// Check-in
let data2 = HTTP.post("https://member.aliyundrive.com/v1/activity/sign_in_list",
JSON.stringify({"_rx-s": "mobile"}),
{headers:{"Authorization":access_token2}}
)
data2=data2.json()
var signin_count = data2['result']['signInCount']
var value =value+ "Account: "+data["user_name"]+"-Check-in successful, accumulated check-ins this month: "+ signin_count+" days"+"\n"
}catch{
var value ="Token check-in failed in cell【"+dyg+"】"+"\n"
return
}
sleep(1000)
var sflq = Application.Range("B"+ii).Text
if (sflq == "Yes"){
try{
// Receive rewards
let data3 = HTTP.post(
"https://member.aliyundrive.com/v1/activity/sign_in_reward?_rx-s=mobile",
JSON.stringify({"signInDay": signin_count}),
{headers:{"Authorization":access_token2}}
)
data3=data3.json()
var value = value +"This check-in received "+data3["result"]["name"] +","+data3["result"]["description"]+"\n"
}catch{
var value = value+ "Account: "+data["user_name"]+"-Failed to receive rewards"+"\n"
}
}else{
value = value +" Rewards to be received"+"\n"
}
}
}
}
console.log(value)
var sftz = Application.Range("E"+1).Text
if (sftz=="Yes"){
var jsyx = Application.Range("E"+2).Text
var zdyfs = Application.Range("H"+1).Text
if (zdyfs == "Yes"){
var zdy_host = Application.Range("H"+2).Text
var zdy_post =Number(Application.Range("H"+3).Text)
var zdy_username = Application.Range("H"+4).Text
var zdy_pasd = Application.Range("H"+5).Text
}else{
var zdy_host = "smtp.163.com"
var zdy_post = 465
var zdy_username = "[email protected]"
var zdy_pasd = "7777777"
}
// Configure sending email
let mailer = SMTP.login({
host: zdy_host, // SMTP server domain name of the email
port: zdy_post,
username: zdy_username, // Email address
password:zdy_pasd, // SMTP password of the email, not the password
secure: true
});
if(jsyx != "[email protected]"){
try{
mailer.send({
from: "Aliyun Drive Check-In<"+zdy_username+">", // Sender
to: jsyx, // Recipient
subject: "Aliyun Drive Check-In Notification-"+data_time, // Subject
text: value, // Text
})
}catch(error){
console.log("Failed to send email"+error)
}
}else{
console.log("Cannot send to this email")
}
}
How to Use Kingsoft Docs for Automatic Check-In#
Thanks to Alist Technology for providing the template
Template address: Aliyun Drive Automatic Check-In Template
Open the template, because the template cannot be edited, so you need to save it separately.
Get refresh_token#
The method of obtaining it is provided by Alist Doc, which saves the trouble of manually searching. You can also find it yourself through the browser console.
Alist Doc documentation: aliyundrive
refresh_token (refresh token) address: https://alist.nn.ci/tool/aliyundrive/request.html
Or use this tutorial: aliyundriveDailyCheck
Then fill in the obtained token in refresh_token
If there are multiple tokens, just continue filling in below. The following content is about configuring email sending, which I personally feel is not very useful, so I didn't set it up. If you need it, you can follow the prompts to set it up.
First run#
Click Efficiency -> Advanced Development -> AirScript Script Editor
Click AirScript
Set up scheduled tasks#
Click Efficiency -> Advanced Development -> Scheduled Tasks
, set the trigger time to daily, set the time as desired, select the AirScript script just saved, and click confirm.
At this point, the Aliyun Drive automatic check-in script is complete.
Finally#
The script comes with risks, please consider the risks before deciding whether to use it.
Lotus flower beads, like sweat makeup