Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
N
Neos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
BBeretta
Neos
Commits
6b74f77c
Commit
6b74f77c
authored
Mar 10, 2024
by
Chunchi Che
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rename function
parent
310c9bf5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
6 deletions
+3
-6
src/api/mycard/room.ts
src/api/mycard/room.ts
+1
-4
src/ui/Match/index.tsx
src/ui/Match/index.tsx
+2
-2
No files found.
src/api/mycard/room.ts
View file @
6b74f77c
...
...
@@ -12,10 +12,7 @@ export interface Room {
// 通过房间ID和external_id加密得出房间密码
//
// 用于加入MC服房间
export
function
getEncryptedPasswd
(
roomID
:
string
,
external_id
:
number
,
):
string
{
export
function
getJoinRoomPasswd
(
roomID
:
string
,
external_id
:
number
):
string
{
const
optionsBuffer
=
new
Uint8Array
(
6
);
optionsBuffer
[
1
]
=
3
<<
4
;
...
...
src/ui/Match/index.tsx
View file @
6b74f77c
...
...
@@ -9,7 +9,7 @@ import { useEffect, useState } from "react";
import
{
LoaderFunction
,
useNavigate
}
from
"
react-router-dom
"
;
import
{
useSnapshot
}
from
"
valtio
"
;
import
{
get
Encrypted
Passwd
,
match
}
from
"
@/api
"
;
import
{
get
JoinRoom
Passwd
,
match
}
from
"
@/api
"
;
import
{
useConfig
}
from
"
@/config
"
;
import
{
accountStore
,
deckStore
,
resetUniverse
,
roomStore
}
from
"
@/stores
"
;
import
{
Background
,
IconFont
,
Select
}
from
"
@/ui/Shared
"
;
...
...
@@ -87,7 +87,7 @@ export const Component: React.FC = () => {
(
server
)
=>
server
.
name
===
"
mycard-athletic
"
,
);
if
(
mcServer
)
{
const
passWd
=
get
Encrypted
Passwd
(
const
passWd
=
get
JoinRoom
Passwd
(
watchStore
.
watchID
,
user
.
external_id
,
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment