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
b9e6af66
Commit
b9e6af66
authored
May 22, 2025
by
cc
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab2.dui88.com/sparkprojects/rb_strongestbrain_250520
parents
ac685dc9
80b7f20e
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
73 additions
and
12 deletions
+73
-12
Crypto.ts
mock/Crypto.ts
+1
-3
game.ts
mock/game.ts
+56
-0
index.ts
src/api/index.ts
+9
-1
share.ts
src/utils/share.ts
+7
-8
No files found.
mock/Crypto.ts
View file @
b9e6af66
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 @
b9e6af66
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 @
b9e6af66
...
...
@@ -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)
...
...
src/utils/share.ts
View file @
b9e6af66
...
...
@@ -4,8 +4,8 @@ import {
callShare
,
Weixin
,
}
from
"@spark/share"
/**
* @description: 小程序跳转
* @param {*}
...
...
@@ -20,7 +20,7 @@ import {
export
function
isIos
()
{
return
navigator
.
userAgent
.
match
(
/iphone|ipod|ipad/gi
)
}
/** 判断微信环境 */
export
function
isWeChat
()
{
const
ua
=
window
.
navigator
.
userAgent
.
toLowerCase
()
...
...
@@ -29,7 +29,7 @@ import {
/**
* 初始化分享
*/
export
async
function
onInitShare
(
cb
)
{
export
async
function
onInitShare
(
cb
?
)
{
await
start
([
Weixin
],
function
(
success
)
{
console
.
log
(
"share result:----"
,
success
)
cb
&&
cb
()
...
...
@@ -83,7 +83,6 @@ import {
}
});
}
\ No newline at end of file
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