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
9d8c9b1c
Commit
9d8c9b1c
authored
Sep 25, 2020
by
qinhaitao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:
🐛
区间问题
parent
287f2c44
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
activityconfig.service.ts
server/duibats/src/service/activityconfig.service.ts
+8
-1
No files found.
server/duibats/src/service/activityconfig.service.ts
View file @
9d8c9b1c
...
@@ -92,7 +92,7 @@ export default class ActivityConfigService {
...
@@ -92,7 +92,7 @@ export default class ActivityConfigService {
}
}
async
deletePrizeByIds
(
ids
:
string
[])
{
async
deletePrizeByIds
(
ids
:
string
[])
{
let
result
:
any
let
result
:
any
=
true
for
(
let
i
=
0
;
i
<
ids
.
length
;
i
++
)
{
for
(
let
i
=
0
;
i
<
ids
.
length
;
i
++
)
{
result
=
await
this
.
updateDeleteStatusById
(
ids
[
i
])
result
=
await
this
.
updateDeleteStatusById
(
ids
[
i
])
}
}
...
@@ -411,6 +411,13 @@ export default class ActivityConfigService {
...
@@ -411,6 +411,13 @@ export default class ActivityConfigService {
let
originPeriod
=
1
let
originPeriod
=
1
return
prizes
.
map
(
v
=>
{
return
prizes
.
map
(
v
=>
{
if
(
!
v
.
probability
)
return
v
if
(
!
v
.
probability
)
return
v
// 概率为0 跳出10000之外的区间
if
(
+
v
.
probability
===
0
)
return
{
...
v
,
properiodfrom
:
1000000
,
properiodto
:
1000000
}
const
properiodfrom
=
originPeriod
const
properiodfrom
=
originPeriod
const
properiodto
=
+
originPeriod
+
signFigures
(
+
v
.
probability
*
100
)
-
1
const
properiodto
=
+
originPeriod
+
signFigures
(
+
v
.
probability
*
100
)
-
1
originPeriod
=
+
originPeriod
+
signFigures
(
+
v
.
probability
*
100
)
originPeriod
=
+
originPeriod
+
signFigures
(
+
v
.
probability
*
100
)
...
...
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