📝 修改部分权限和文档

This commit is contained in:
Wuyi无疑 2023-03-27 23:17:05 +08:00
parent 98e37957ec
commit 6dcd226a46
7 changed files with 22 additions and 18 deletions

View File

@ -4,7 +4,7 @@ from gsuid_core.models import Event
from .import_data import import_v3_data
sv_v3_data = SV('数据备份恢复', pm=2)
sv_v3_data = SV('数据备份恢复', pm=1)
@sv_v3_data.on_fullmatch(('导入v3数据'))

View File

@ -19,7 +19,7 @@ MAP_CHN_NAME = {
}
sv_find_map_config = SV('查询地图设置', pm=2)
sv_find_map = SV('查询地图', pm=2)
sv_find_map = SV('查询地图')
@sv_find_map_config.on_fullmatch(('切换地图'))

View File

@ -16,7 +16,7 @@ from ..genshinuid_config.gs_config import gsconfig
SIGN_TIME = gsconfig.get_config('SignTime').data
sv_sign = SV('原神签到')
sv_sign_config = SV('原神签到', pm=2)
sv_sign_config = SV('原神签到管理', pm=2)
# 每日零点半执行米游社原神签到

View File

@ -2,6 +2,10 @@ from typing import List
from gsuid_core.models import Message
CK_QRCODE_LOGIN = '''先发送【绑定uidxxx】绑定UID,
然后发送扫码登陆, 使用米游社APP扫码完成绑定, [或者]选择以下方法
'''
CK_CONSOLE = '''var cookie = document.cookie;
var Str_Num = cookie.indexOf('_MHYUUID=');
cookie = '添加 ' + cookie.substring(Str_Num);
@ -15,15 +19,15 @@ if (ask == true) {
'''
CK_URL = '''1.复制上面全部代码,然后打开下面的网站
https://bbs.mihoyo.com/ys/obc/?bbs_presentation_style=no_header国服
https://www.hoyolab.com/home国际服
https://bbs.mihoyo.com/ys/obc/?bbs_presentation_style=no_header(国服)
https://www.hoyolab.com/home(国际服)
2.在页面上右键检查或者Ctrl+Shift+i
3.选择控制台Console粘贴回车在弹出的窗口点确认点完自动复制
3.选择控制台(Console)粘贴回车在弹出的窗口点确认(点完自动复制)
4.然后在和机器人的私聊窗口粘贴发送即可
'''
SK_URL = '''如果想获取SK,操作方法和上面一致,网址更换为
http://user.mihoyo.com/国服
http://user.mihoyo.com/(国服)
登陆后,进入控制台粘贴代码
然后在和机器人的私聊窗口粘贴发送即可
'''
@ -32,6 +36,7 @@ http://user.mihoyo.com/(国服)
async def get_ck_help() -> List[Message]:
msg_list = []
msg_list.append(Message('text', '请先添加bot为好友'))
msg_list.append(Message('text', CK_QRCODE_LOGIN))
msg_list.append(Message('text', CK_CONSOLE))
msg_list.append(Message('text', CK_URL))
msg_list.append(Message('text', SK_URL))

View File

@ -2,9 +2,8 @@ from typing import Union
UID_HINT = '你还没有绑定过uid哦!\n请使用[绑定uid123456]命令绑定!'
MYS_HINT = '你还没有绑定过mysid哦!\n请使用[绑定mys1234]命令绑定!'
CK_HINT = """你还没有绑定过Cookie哦!
警告:绑定Cookie可能会带来未知的账号风险,请确保信任机器人管理员
获取Cookies教程:https://github.com/KimigaiiWuyi/GenshinUID/issues/255"""
CK_HINT = """你还没有绑定过Cookie哦!发送【ck帮助】获取帮助!
警告:绑定Cookie可能会带来未知的账号风险,请确保信任机器人管理员"""
CHAR_HINT = '你还没有{}的缓存噢!\n请先使用【强制刷新】命令来缓存数据! \n或者使用【查询展柜角色】命令查看已缓存角色!'
VERIFY_HINT = '''出现验证码!
如已绑定CK: 请至米游社软件->我的->我的角色处解锁验证码

14
poetry.lock generated
View File

@ -668,14 +668,14 @@ test = ["aiosqlite (>=0.15.0)", "jinja2 (>=2.11.2,<4.0.0)", "pytest (>=6.2.4)",
[[package]]
name = "filelock"
version = "3.10.6"
version = "3.10.7"
description = "A platform independent file lock."
category = "dev"
optional = false
python-versions = ">=3.7"
files = [
{file = "filelock-3.10.6-py3-none-any.whl", hash = "sha256:52f119747b2b9c4730dac715a7b1ab34b8ee70fd9259cba158ee53da566387ff"},
{file = "filelock-3.10.6.tar.gz", hash = "sha256:409105becd604d6b176a483f855e7e8903c5cb2873e47f2c64f66a370c046aaf"},
{file = "filelock-3.10.7-py3-none-any.whl", hash = "sha256:bde48477b15fde2c7e5a0713cbe72721cb5a5ad32ee0b8f419907960b9d75536"},
{file = "filelock-3.10.7.tar.gz", hash = "sha256:892be14aa8efc01673b5ed6589dbccb95f9a8596f0507e232626155495c18105"},
]
[package.extras]
@ -2173,14 +2173,14 @@ files = [
[[package]]
name = "tomlkit"
version = "0.11.6"
version = "0.11.7"
description = "Style preserving TOML library"
category = "main"
optional = false
python-versions = ">=3.6"
python-versions = ">=3.7"
files = [
{file = "tomlkit-0.11.6-py3-none-any.whl", hash = "sha256:07de26b0d8cfc18f871aec595fda24d95b08fef89d147caa861939f37230bf4b"},
{file = "tomlkit-0.11.6.tar.gz", hash = "sha256:71b952e5721688937fb02cf9d354dbcf0785066149d2855e44531ebdd2b65d73"},
{file = "tomlkit-0.11.7-py3-none-any.whl", hash = "sha256:5325463a7da2ef0c6bbfefb62a3dc883aebe679984709aee32a317907d0a8d3c"},
{file = "tomlkit-0.11.7.tar.gz", hash = "sha256:f392ef70ad87a672f02519f99967d28a4d3047133e2d1df936511465fbb3791d"},
]
[[package]]

View File

@ -56,7 +56,7 @@ sqlalchemy==1.4.41 ; python_full_version >= "3.8.1" and python_full_version < "4
sqlmodel==0.0.8 ; python_full_version >= "3.8.1" and python_full_version < "4.0.0"
sqlmodelx==0.0.4 ; python_full_version >= "3.8.1" and python_full_version < "4.0.0"
starlette==0.26.1 ; python_full_version >= "3.8.1" and python_full_version < "4.0.0"
tomlkit==0.11.6 ; python_full_version >= "3.8.1" and python_version < "4.0"
tomlkit==0.11.7 ; python_full_version >= "3.8.1" and python_version < "4.0"
typing-extensions==4.5.0 ; python_full_version >= "3.8.1" and python_version < "4.0"
tzdata==2023.2 ; python_full_version >= "3.8.1" and python_version < "4.0"
tzlocal==4.3 ; python_full_version >= "3.8.1" and python_version < "4.0"