Skip to content

Commit

Permalink
✨ 新增(pages/history/2024-02-16.mdx): 添加新的历史记录
Browse files Browse the repository at this point in the history
  📝 更新(pages/history/_meta.json): 更新历史记录元数据
  📝 更新(pages/settings/imaotai.mdx): 更新关于i茅台的设置文档
  🚀 更新(theme.config.tsx): 更新主题配置文件,更改发布版本和链接
  • Loading branch information
Sitoi committed Feb 16, 2024
1 parent 9589880 commit 643232a
Show file tree
Hide file tree
Showing 4 changed files with 52 additions and 12 deletions.
22 changes: 22 additions & 0 deletions pages/history/2024-02-16.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# 2024-02-16

![PyPI](https://img.shields.io/badge/Pypi-v24.2.16-brightgreen)

## ✨ 功能

- 新增「i 茅台」支持自定义申购选择

```json copy
{
"10941": "53%vol 500ml贵州茅台酒(甲辰龙年)",
"10942": "53%vol 375ml×2贵州茅台酒(甲辰龙年)",
"10056": "53%vol 500ml茅台1935",
"2478": "53%vol 500ml贵州茅台酒(珍品)"
}
```

默认配置申购 `["10941", "10942"]`

## 🐛 修复

- 修复「爱奇艺」逛会员优选任务
1 change: 1 addition & 0 deletions pages/history/_meta.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"2024-02-16": "2024-02-16",
"2024-02-09": "2024-02-09",
"2024-02-06": "2024-02-06",
"2024-01-20": "2024-01-20",
Expand Down
35 changes: 26 additions & 9 deletions pages/settings/imaotai.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@ import { Steps } from 'nextra/components'
"province": "上海市",
"token": "eyJxxxxxx",
"userid": "1xxxxxx4",
"reserve_rule": 0
"reserve_rule": 0,
"item_codes": ["10941", "10942"]
},
{
"city": "多账号 城市",
Expand All @@ -86,7 +87,8 @@ import { Steps } from 'nextra/components'
"province": "多账号 省份",
"token": "多账号 token",
"userid": "多账号 用户 id",
"reserve_rule": 0
"reserve_rule": 0,
"item_codes": ["10941", "10942"]
}
]
}
Expand All @@ -104,6 +106,20 @@ import { Steps } from 'nextra/components'
| _**IMAOTAI**_.lat | i 茅台 申领纬度(用于选择离你最近的茅台地点) |
| _**IMAOTAI**_.lng | i 茅台 申领经度(用于选择离你最近的茅台地点) |
| _**IMAOTAI**_.reserve_rule | i 茅台 申领方式 默认:0 距离最近的店铺,1: 当前城市出货量最多的 |
| _**IMAOTAI**_.item_codes | i 茅台 申领商品 Code 默认不填为 ["10941", "10942"] |

> item_codes 支持以下几种选择
```json copy
{
"10941": "53%vol 500ml贵州茅台酒(甲辰龙年)",
"10942": "53%vol 375ml×2贵州茅台酒(甲辰龙年)",
"10056": "53%vol 500ml茅台1935",
"2478": "53%vol 500ml贵州茅台酒(珍品)"
}
```

默认配置申购 `["10941", "10942"]`

## 获取方式

Expand Down Expand Up @@ -131,7 +147,7 @@ import { Steps } from 'nextra/components'

### 创建 Key

输入 「Key 名称」 -> 选择 「Web
输入 「Key 名称」 -> 选择 「Web 服务

![](../img/imaotai/gd-5.png)

Expand Down Expand Up @@ -162,15 +178,12 @@ import time

import requests


"""
获取地点信息,这里用的高德 api,需要自己去高德开发者平台申请自己的 key
"""
AMAP_KEY = ""




SALT = "2af72f100c356273d46284f6fd1dfc08"

CURRENT_TIME = str(int(time.time() * 1000))
Expand Down Expand Up @@ -288,7 +301,9 @@ def login(mobile: str, v_code: str):

def get_location():
while 1:
location = input("请输入精确小区位置,例如[小区名称],为你自动预约附近的门店:").strip()
location = input(
"请输入精确小区位置,例如[小区名称],为你自动预约附近的门店:"
).strip()
selects = select_geo(location)

a = 0
Expand Down Expand Up @@ -316,9 +331,9 @@ if __name__ == "__main__":
city = location_select["city"]
location: str = location_select["location"]

mobile = input("输入手机号[13888888888]:").strip()
mobile = input("输入手机号[18888888888]:").strip()
get_vcode(mobile)
code = input(f"输入 [{mobile}] 验证码[1234]:").strip()
code = input(f"输入 [{mobile}] 验证码[8888]:").strip()
token, userId = login(mobile, code)
item = {
"city": str(city),
Expand All @@ -328,6 +343,8 @@ if __name__ == "__main__":
"province": province,
"token": str(token),
"userid": str(userId),
"reserve_rule": 0,
"item_codes": ["10941", "10942"],
}
items.append(item)
condition = input("是否继续添加账号[y/n]:").strip()
Expand Down
6 changes: 3 additions & 3 deletions theme.config.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,13 @@ const config: DocsThemeConfig = {
}
},
banner: {
key: '2024.2.9-release',
key: '2024.2.16-release',
text: (
<a
href="/dailycheckin/history/2024-02-09/"
href="/dailycheckin/history/2024-02-16/"
target="_blank"
>
🎉 DailyCheckIn 2024.2.9 is released. Read more →
🎉 DailyCheckIn 2024.2.16 is released. Read more →
</a>
),
},
Expand Down

0 comments on commit 643232a

Please sign in to comment.