Support auto update oversea codes

This commit is contained in:
xtaodada 2023-06-10 22:35:27 +08:00
parent d034fe0a72
commit 4c19a00b66
Signed by: xtaodada
GPG Key ID: 4CBB3F4FA8C85659
6 changed files with 67 additions and 230 deletions

47
.github/workflows/daily.yml vendored Normal file
View File

@ -0,0 +1,47 @@
name: Auto update oversea codes
on:
schedule:
- cron: '0 0 * * *'
workflow_dispatch: ~
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
# 此步骤使用 GitHub 的 https://github.com/actions/checkout
- name: checkout actions
uses: actions/checkout@v3
# 设置python环境
# 此步骤使用 GitHub 的 https://github.com/actions/setup-python
- name: Set up Python 3.9
uses: actions/setup-python@v3
with:
python-version: 3.9
# 安装依赖
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
# 更新国际服 code
- name: Update over code
run: |
python main.py
# Auto commit
- name: Commit changes
uses: EndBug/add-and-commit@v9
with:
author_name: github-actions[bot]
author_email: github-actions[bot]@users.noreply.github.com
push: 'origin remote --force'
new_branch: 'remote'
message: ':sparkles: Update Codes'
add: |
'data'

View File

@ -3,13 +3,10 @@
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<title>Dark Responsive Page with Tabs</title> <title>《崩坏:星穹铁道》兑换码 - PaiGramTeam</title>
<!-- 新 Bootstrap5 核心 CSS 文件 --> <link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/5.1.1/css/bootstrap.min.css"> <script src="js/bootstrap.bundle.min.js"></script>
<!-- 最新的 Bootstrap5 核心 JavaScript 文件 -->
<script src="https://cdn.staticfile.org/twitter-bootstrap/5.1.1/js/bootstrap.bundle.min.js"></script>
<!-- custom styles --> <!-- custom styles -->
<style> <style>

View File

@ -1,214 +1,4 @@
{ {
"main": [ "main": [],
{ "over": []
"code": "MIYOUSHE2023",
"reward": [
{
"name": "星琼",
"cnt": 60
}
],
"expire": 1686402166000
}
],
"over": [
{
"code": "BSN2EWMHA4RP",
"reward": [
{
"name": "星琼",
"cnt": 100
},
{
"name": "信用点",
"cnt": 10000
}
],
"expire": 4102415999999
},
{
"code": "HSRVER10JYTGHC",
"reward": [
{
"name": "星琼",
"cnt": 100
},
{
"name": "信用点",
"cnt": 10000
}
],
"expire": 4102415999999
},
{
"code": "STARRAILGIFT",
"reward": [
{
"name": "星琼",
"cnt": 50
},
{
"name": "信用点",
"cnt": 10000
}
],
"expire": 4102415999999
},
{
"code": "SURPRISE1024",
"reward": [
{
"name": "星琼",
"cnt": 100
},
{
"name": "冒险记录",
"cnt": 3
},
{
"name": "疾速粉尘",
"cnt": 2
},
{
"name": "信用点",
"cnt": 5000
}
],
"expire": 1686070799999
},
{
"code": "ZTPTNMTX8LUF",
"reward": [
{
"name": "星琼",
"cnt": 100
},
{
"name": "信用点",
"cnt": 50000
}
],
"expire": 1685206799999
},
{
"code": "8A6T6LBFQ4D3",
"reward": [
{
"name": "星琼",
"cnt": 100
},
{
"name": "漫游指南",
"cnt": 5
}
],
"expire": 1685206799999
},
{
"code": "DB7A64BW8LC7",
"reward": [
{
"name": "星琼",
"cnt": 100
},
{
"name": "提纯以太",
"cnt": 4
}
],
"expire": 1685206799999
},
{
"code": "CS75WMP976AK",
"reward": [
{
"name": "星琼",
"cnt": 100
}
],
"expire": 1685206799999
},
{
"code": "HSRVER10XEDLFE",
"reward": [
{
"name": "星琼",
"cnt": 50
},
{
"name": "信用点",
"cnt": 10000
},
{
"name": "漫游指南",
"cnt": 2
}
],
"expire": 1683565199999
},
{
"code": "2T7BP4JVEBT7",
"reward": [
{
"name": "信用点",
"cnt": 5000
},
{
"name": "冒险记录",
"cnt": 3
},
{
"name": "凝缩以太",
"cnt": 2
},
{
"name": "大宇宙炒饭",
"cnt": 3
}
],
"expire": 1683392399999
},
{
"code": "HSRGRANDOPEN1",
"reward": [
{
"name": "星琼",
"cnt": 100
},
{
"name": "信用点",
"cnt": 5000
}
],
"expire": 1682787599999
},
{
"code": "HSRGRANDOPEN2",
"reward": [
{
"name": "星琼",
"cnt": 100
},
{
"name": "漫游指南",
"cnt": 5
}
],
"expire": 1682787599999
},
{
"code": "HSRGRANDOPEN3",
"reward": [
{
"name": "星琼",
"cnt": 100
},
{
"name": "提纯以太",
"cnt": 4
}
],
"expire": 1682787599999
}
]
} }

7
data/css/bootstrap.min.css vendored Normal file

File diff suppressed because one or more lines are too long

View File

@ -1,15 +1,4 @@
{ {
"main": [ "main": [],
{
"code": "MIYOUSHE2023",
"reward": [
{
"name": "星琼",
"cnt": 60
}
],
"expire": 1689695999999
}
],
"over": [] "over": []
} }

7
data/js/bootstrap.bundle.min.js vendored Normal file

File diff suppressed because one or more lines are too long