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
80b7f20e
Commit
80b7f20e
authored
May 22, 2025
by
haiyoucuv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
21
parent
bd70bc50
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
66 additions
and
4 deletions
+66
-4
Crypto.ts
mock/Crypto.ts
+1
-3
game.ts
mock/game.ts
+56
-0
index.ts
src/api/index.ts
+9
-1
No files found.
mock/Crypto.ts
View file @
80b7f20e
import
CryptoJS
from
'crypto-js'
;
const
{
mode
,
pad
,
enc
,
AES
}
=
CryptoJS
;
import
{
mode
,
pad
,
enc
,
AES
}
from
'crypto-js'
;
const
getOptions
=
(
iv
:
string
)
=>
{
return
{
...
...
mock/game.ts
0 → 100644
View file @
80b7f20e
import
{
AESEncrypt
}
from
"../src/utils/Crypto"
;
export
default
[
{
url
:
'/zqdn/start.do'
,
response
:
({
query
})
=>
{
return
{
code
:
"123"
,
success
:
true
,
message
:
"message"
,
data
:
AESEncrypt
(
JSON
.
stringify
({
recordId
:
"recordId"
,
countdownSeconds
:
180
,
remainTipTimes
:
3
,
}),
"7A2F4B8D1E6C3905"
,
"cDOiBC1n2QrkAY2P"
),
}
},
},
{
url
:
'/zqdn/suggest.do'
,
response
:
({
query
})
=>
{
return
{
code
:
"123"
,
success
:
true
,
message
:
"message"
,
data
:
null
}
},
},
{
url
:
'/zqdn/middleSubmit.do'
,
response
:
({
query
})
=>
{
return
{
code
:
"123"
,
success
:
true
,
message
:
"message"
,
data
:
null
}
},
},
{
url
:
'/zqdn/submit.do'
,
response
:
({
query
})
=>
{
return
{
code
:
"123"
,
success
:
true
,
message
:
"message"
,
data
:
{
drawChance
:
3
,
title
:
"5555"
,
desc
:
"123123123"
}
}
},
},
]
src/api/index.ts
View file @
80b7f20e
...
...
@@ -105,7 +105,7 @@ const API = generateAPI({
method
:
"post"
,
withToken
:
true
,
},
// 推送使用
outside
:
{
uri
:
`inviteAssist_1/outside.do`
,
...
...
@@ -180,6 +180,14 @@ const API = generateAPI({
/** 落地页 */
coop_getLoadingInfo
:
"common/outside.do"
,
rankInfo
:
`zqdn/rankIndex.do`
,
////////////////////////////// Game //////////////////////////////
start
:
`/zqdn/start.do`
,
suggest
:
`/zqdn/suggest.do`
,
middleSubmit
:
`/zqdn/middleSubmit.do`
,
submit
:
`/zqdn/submit.do`
,
})
// console.log('======', API)
...
...
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