Skip to content
This repository has been archived by the owner on Oct 11, 2023. It is now read-only.

Commit

Permalink
尝试修复原神兑换失败问题 #114 #110 #116
Browse files Browse the repository at this point in the history
  • Loading branch information
Ljzd-PRO committed Jun 19, 2023
1 parent 3cad97e commit 992bd41
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
6 changes: 4 additions & 2 deletions mys_goods_tool/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
URL_GOOD_LIST = "https://api-takumi.mihoyo.com/mall/v1/web/goods/list?app_id=1&point_sn=myb&page_size=20&page={" \
"page}&game={game} "
URL_CHECK_GOOD = "https://api-takumi.mihoyo.com/mall/v1/web/goods/detail?app_id=1&point_sn=myb&goods_id={}"
URL_EXCHANGE = "https://api-takumi.mihoyo.com/mall/v1/web/goods/exchange"
URL_EXCHANGE = "https://api-takumi.miyoushe.com/mall/v1/web/goods/exchange"
URL_ADDRESS = "https://api-takumi.mihoyo.com/account/address/list?t={}"
URL_REGISTRABLE = "https://webapi.account.mihoyo.com/Api/is_mobile_registrable?mobile={mobile}&t={t}"
URL_CREATE_MMT = "https://webapi.account.mihoyo.com/Api/create_mmt?scene_type=1&now={now}&reason=user.mihoyo.com%2523%252Flogin%252Fcaptcha&action_type=login_by_mobile_captcha&t={t}"
Expand Down Expand Up @@ -197,7 +197,9 @@
"Content-Type":
"application/json;charset=utf-8",
"Host":
"api-takumi.mihoyo.com",
"api-takumi.miyoushe.com",
"Origin":
"https://webstatic.mihoyo.com",
"User-Agent":
conf.device_config.USER_AGENT_MOBILE,
"x-rpc-app_version":
Expand Down
5 changes: 3 additions & 2 deletions mys_goods_tool/user_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
CONFIG_PATH = ROOT_PATH / "user_data.json"
"""用户数据文件默认路径"""

VERSION = "2.0.4"
VERSION = "2.0.5-dev"
"""程序当前版本"""

if TYPE_CHECKING:
Expand Down Expand Up @@ -352,6 +352,7 @@ class Config(Preference.Config):
pass


# TODO 与用户数据文件中的配置有差异时询问是否使用更新
class DeviceConfig(BaseSettings):
"""
设备信息
Expand Down Expand Up @@ -394,7 +395,7 @@ class DeviceConfig(BaseSettings):
X_RPC_CHANNEL_ANDROID: str = "miyousheluodi"
'''安卓端 x-rpc-channel'''

X_RPC_APP_VERSION: str = "2.28.1"
X_RPC_APP_VERSION: str = "2.52.1"
'''Headers所用的 x-rpc-app_version'''
X_RPC_PLATFORM: str = "ios"
'''Headers所用的 x-rpc-platform'''
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "mys-goods-tool"
version = "2.0.4"
version = "2.0.5-dev"
description = "米游社商品兑换工具|短信验证登录|终端TUI界面"
authors = ["Ljzd-PRO <ljzd@office.ljzd-pro.ml>"]
readme = "README.md"
Expand Down

0 comments on commit 992bd41

Please sign in to comment.