-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1b74685
commit 79b4e56
Showing
10 changed files
with
113 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
在 `2.1.0` 版本中,我们添加了 mhyy.py 的第二种客户端类型—— | ||
[PCWeb](../api/interface.md#userclienttype) | ||
|
||
因此,你可以直接从 云·原神 或 云·星穹铁道 的网页版获取你的 headers。 | ||
|
||
所以你可以这样定义你在云游戏网页版的用户: | ||
|
||
```python | ||
from mhyy import User, UserClientType | ||
|
||
user = User( | ||
combo_token="x-rpc-combo_token", | ||
sys_version="x-rpc-sys_version", | ||
device_id="x-rpc-device_id", | ||
device_name="x-rpc-device_name", | ||
device_model="x-rpc-device_model", | ||
client_type=UserClientType.PCWeb | ||
) | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
# Client. | ||
# Client | ||
from ._client import Client | ||
from ._types import GameType | ||
|
||
# User. | ||
# User | ||
from ._user import User | ||
from ._types import UserClientType, UserChannel | ||
|
||
# Notification. | ||
# Notification | ||
from ._types import NotificationType, NotificationStatus |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters