Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
RB_StrongestBrain_250520
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
SparkProjects
RB_StrongestBrain_250520
Commits
26b173b1
Commit
26b173b1
authored
May 30, 2025
by
haiyoucuv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
11
parent
e6e73ddd
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
4 deletions
+0
-4
gameStore.ts
src/store/gameStore.ts
+0
-4
No files found.
src/store/gameStore.ts
View file @
26b173b1
...
...
@@ -31,8 +31,6 @@ class GameStore {
const
data
=
JSON
.
parse
(
AESDecrypt
(
d
,
"7A2F4B8D1E6C3905"
,
"cDOiBC1n2QrkAY2P"
))
as
any
;
console
.
log
(
data
);
this
.
gameInfo
.
levelIdxArr
=
LevelArr
.
map
((
_
,
index
)
=>
index
);
this
.
gameInfo
.
levelIdxArr
.
sort
(()
=>
Math
.
random
()
-
0.5
);
this
.
gameInfo
.
levelIndex
=
-
1
;
...
...
@@ -60,7 +58,6 @@ class GameStore {
timestamp
:
Date
.
now
(),
};
const
param
=
AESEncrypt
(
JSON
.
stringify
(
d
),
"7A2F4B8D1E6C3905"
,
"cDOiBC1n2QrkAY2P"
);
console
.
log
(
d
);
const
{
success
,
data
}
=
await
API
.
middleSubmit
({
param
});
return
success
;
...
...
@@ -78,7 +75,6 @@ class GameStore {
score
,
timestamp
:
Date
.
now
(),
};
console
.
log
(
d
);
const
param
=
AESEncrypt
(
JSON
.
stringify
(
d
),
"7A2F4B8D1E6C3905"
,
"cDOiBC1n2QrkAY2P"
);
const
{
success
,
data
}
=
await
API
.
submit
({
param
});
...
...
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