Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
taobao-mini-template
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
2
Issues
2
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
qinhaitao
taobao-mini-template
Commits
f26cce70
Commit
f26cce70
authored
Jul 24, 2020
by
秦海涛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
78a9d787
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
activity.controller.js
server/duiba/controller/activity.controller.js
+8
-2
No files found.
server/duiba/controller/activity.controller.js
View file @
f26cce70
...
...
@@ -88,7 +88,7 @@ const saveActivityInfoByHasId = async function (context) {
activityId
=
""
,
startTime
,
endTime
,
task
List
=
[]
,
task
s
=
{}
,
rule
,
}
=
context
.
data
;
let
initialData
;
...
...
@@ -103,6 +103,12 @@ const saveActivityInfoByHasId = async function (context) {
"活动名称不可超过12个字"
);
}
const
taskList
=
Object
.
keys
(
tasks
).
map
(
type
=>
{
return
{
...
tasks
[
type
]
type
}
})
if
(
taskList
.
length
===
0
)
{
return
resultsModel
.
error
(
CODE_TYPES
.
PARAMS_ERROR
,
"任务配置必须配置一项"
);
}
else
{
...
...
@@ -232,7 +238,7 @@ const saveActivityInfoByHasId = async function (context) {
endTime
,
rule
,
openId
,
task
List
,
task
s
,
};
prizeInfoList
=
prizeInfoList
.
map
((
v
,
i
)
=>
{
return
{
...
v
,
level
:
i
+
1
};
...
...
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