初始化项目
This commit is contained in:
8
batch_modify.sh
Normal file
8
batch_modify.sh
Normal file
@@ -0,0 +1,8 @@
|
||||
#!/bin/bash
|
||||
wd="/home/oasis/dev_projects/wechatStep"
|
||||
cd $wd
|
||||
while read acct pwd
|
||||
do
|
||||
sh modify.sh $acct $pwd >> ./logs
|
||||
echo "\n" >> ./logs
|
||||
done < acct_list
|
||||
9
logs
Normal file
9
logs
Normal file
@@ -0,0 +1,9 @@
|
||||
2025/06/04 11:22:36 qiezihwy@outlook.com step => 10001
|
||||
{"status":"success","message":"步数已成功更新: 10001"}
|
||||
|
||||
2025/06/04 11:23:20 qiezihwy@outlook.com step => 10651
|
||||
{"status":"success","message":"步数已成功更新: 10651"}
|
||||
|
||||
2025/06/04 11:25:24 qiezihwy@outlook.com step => 10012
|
||||
{"status":"success","message":"步数已成功更新: 10012"}
|
||||
|
||||
13
modify.sh
Normal file
13
modify.sh
Normal file
@@ -0,0 +1,13 @@
|
||||
#!/bin/bash
|
||||
if [ "$#" -ne "2" ];then
|
||||
echo 参数不合法!
|
||||
echo eg: sh $0 [账号] [密码]
|
||||
exit 1
|
||||
fi
|
||||
acct=$1
|
||||
passwd=$2
|
||||
random_num=$(shuf -i 1-1000 -n 1)
|
||||
step=$(( 10000 + random_num ))
|
||||
echo `date +"%Y/%m/%d %H:%M:%S"` $acct step =\> $step
|
||||
#curl --location --request GET 'https://steps.api.030101.xyz/api?account=qiezihwy@outlook.com&password=HwyXiaomi9836$&steps=12134'
|
||||
curl -s --location --request GET "https://steps.api.030101.xyz/api?account=$acct&password=$passwd&steps=$step"
|
||||
Reference in New Issue
Block a user