Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
RB-studyChina-20250617
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-studyChina-20250617
Commits
397b3d88
Commit
397b3d88
authored
Jun 21, 2025
by
俞嘉婷
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
完成任务加密入参
parent
d2f7ff00
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
1 deletion
+7
-1
LoginPop.jsx
src/components/LoginPop/LoginPop.jsx
+1
-1
store.ts
src/store/store.ts
+1
-0
task.ts
src/store/task.ts
+5
-0
No files found.
src/components/LoginPop/LoginPop.jsx
View file @
397b3d88
...
...
@@ -202,7 +202,7 @@ class LoginPop extends React.Component {
<
Button
className=
{
loginBtnCls
}
onClick=
{
this
.
closeLogin
}
/>
</
div
>
<
Button
className=
"close"
onClick=
{
this
.
handleClose
}
/>
{
/* <Button className="close" onClick={this.handleClose} /> */
}
</
div
>;
}
}
...
...
src/store/store.ts
View file @
397b3d88
...
...
@@ -101,6 +101,7 @@ class Store {
validUid
?:
boolean
,
rulePop
?:
boolean
,
userId
?:
string
,
newGuideFlag
:
number
,
}
=
{};
...
...
src/store/task.ts
View file @
397b3d88
...
...
@@ -12,6 +12,7 @@ import { Toast } from "@grace/ui";
import
{
ModalCtrl
}
from
"@/core/ctrls/ModalCtrl"
;
import
LongImgPop
from
"@/panels/longImgPop/longImgPop.jsx"
;
import
{
handleLogClick
,
handleLogExposure
}
from
"../MD"
;
import
{
MD5
}
from
"crypto-js"
;
interface
TaskItem
{
jumpUrl
?:
string
;
...
...
@@ -173,8 +174,12 @@ const taskStore = makeAutoObservable({
/** 完成任务 */
async
complete
(
item
,
time
=
0
)
{
const
{
id
,
code
}
=
item
||
{};
const
timestamp
=
new
Date
().
getTime
();
const
sign
=
MD5
(
store
.
indexData
?.
userId
+
"_"
+
code
+
"_"
+
timestamp
+
"_"
+
"4fe20bdefdd4804f"
)
let
params
=
{
taskCode
:
code
,
sign
,
timestamp
,
};
const
res
=
await
API
.
doCompleted
(
params
);
await
store
.
updateIndex
();
...
...
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