Skip to content

Commit 399b7d6

Browse files
committed
fix: apk download
1 parent 4012d78 commit 399b7d6

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

.github/download.sh

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
#!/bin/bash
22

3-
# shellcheck disable=SC2154
4-
jsonData="$(curl -X POST 'https://yybadaccess.3g.qq.com/v2/dc_pcyyb_official' -H 'Content-Type: application/json' -d '{"head":{"cmd":"dc_pcyyb_official","authInfo":{"businessId":"AuthName"},"expSceneIds":"92215","hostAppInfo":{"scene":"game_detail"}},"body":{"bid":"yybhome","offset":0,"size":10,"preview":false,"listS":{"region":{"repStr":["CN"]},"pkgname":{"repStr":["com.mihoyo.hyperion"]}},"layout":"yybn_game_basic_info"}}')"
5-
url="$(echo "$jsonData" | jq --raw-output '.data.components[0].data.itemData[0].download_url')"
6-
curl -o miyoushe.apk "$url"
3+
for i in {1..3}
4+
do
5+
wget -O miyoushe.apk "http://appstore.vivo.com.cn/appinfo/downloadApkFile-h5appstore?id=2808879"
6+
if [ $? -eq 0 ]; then
7+
break
8+
fi
9+
done
10+
ls -l

0 commit comments

Comments
 (0)