Commit 8cd7aa95 authored by Chunchi Che's avatar Chunchi Che

update small

parent 10799a04
Pipeline #23644 passed with stages
in 14 minutes and 40 seconds
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
"port":"7211" "port":"7211"
}, },
{ {
"name":"mycard", "name":"mycard-athletic",
"ip":"tiramisu.moecube.com", "ip":"tiramisu.moecube.com",
"port":"8912" "port":"8912"
} }
......
...@@ -38,6 +38,7 @@ export const WatchContent: React.FC<{ ...@@ -38,6 +38,7 @@ export const WatchContent: React.FC<{
}> = ({ setWatchID }) => { }> = ({ setWatchID }) => {
const [rooms, setRooms] = useState<Room[]>([]); const [rooms, setRooms] = useState<Room[]>([]);
const { message } = App.useApp(); const { message } = App.useApp();
// 暂时只支持竞技匹配的观战,TODO:后面需要加上娱乐匹配的支持
const url = new URL(athleticWatchUrl); const url = new URL(athleticWatchUrl);
url.searchParams.set("filter", "started"); url.searchParams.set("filter", "started");
......
...@@ -76,8 +76,9 @@ export const Component: React.FC = () => { ...@@ -76,8 +76,9 @@ export const Component: React.FC = () => {
if (watchID) { if (watchID) {
setWatchLoading(true); setWatchLoading(true);
// 找到MC竞技匹配的Server
const mcServer = serverList.find( const mcServer = serverList.find(
(server) => server.name === "mycard", (server) => server.name === "mycard-athletic",
); );
if (mcServer) { if (mcServer) {
const passWd = getEncryptedPasswd(watchID, user); const passWd = getEncryptedPasswd(watchID, user);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment