There was an error while loading. Please reload this page.
1 parent 4012d78 commit 399b7d6Copy full SHA for 399b7d6
1 file changed
.github/download.sh
@@ -1,6 +1,10 @@
1
#!/bin/bash
2
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"
+for i in {1..3}
+do
+ wget -O miyoushe.apk "http://appstore.vivo.com.cn/appinfo/downloadApkFile-h5appstore?id=2808879"
+ if [ $? -eq 0 ]; then
7
+ break
8
+ fi
9
+done
10
+ls -l
0 commit comments