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
5bcb2a32
Commit
5bcb2a32
authored
Sep 08, 2020
by
qinhaitao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:
🐛
概率配置
parent
f0e1ad2c
Changes
15
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
87 additions
and
14 deletions
+87
-14
save.controller.js.map
server/duibats/dist/controller/save.controller.js.map
+1
-1
index.js
server/duibats/dist/decorator/index.js
+1
-1
activityconfig.service.d.ts
server/duibats/dist/service/activityconfig.service.d.ts
+1
-0
activityconfig.service.js
server/duibats/dist/service/activityconfig.service.js
+14
-0
activityconfig.service.js.map
server/duibats/dist/service/activityconfig.service.js.map
+1
-1
index.js
server/duibats/dist/service/index.js
+1
-0
index.js.map
server/duibats/dist/service/index.js.map
+1
-1
index.js
server/duibats/dist/utils/index.js
+1
-1
math.d.ts
server/duibats/dist/utils/math.d.ts
+1
-0
math.js
server/duibats/dist/utils/math.js
+21
-1
math.js.map
server/duibats/dist/utils/math.js.map
+1
-1
save.controller.ts
server/duibats/src/controller/save.controller.ts
+4
-1
activityconfig.service.ts
server/duibats/src/service/activityconfig.service.ts
+16
-0
activity.d.ts
server/duibats/src/typings/activity.d.ts
+6
-6
math.ts
server/duibats/src/utils/math.ts
+17
-0
No files found.
server/duibats/dist/controller/save.controller.js.map
View file @
5bcb2a32
{"version":3,"file":"save.controller.js","sourceRoot":"","sources":["../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G,SAAsE;wBAGpD,qBAAM,qBAAqB,CAAC,aAAa,CAAC,UAAU,EAAE,YAAY,CAAC;4BAElG,aAAa;0BAFqF;;wBAA5F,KAAyB,SAAmE,EAA1F,OAAO,aAAA,EAAE,SAAS,eAAA;wBAGjB,qBAAM,qBAAqB,CAAC,gBAAgB,CAAC,SAAS,CAAC;4BAEhE,UAAU;0BAFsD;;wBADhE,aAAa;wBACb,MAAM,GAAG,SAAuD,CAAA;wBAGvD,qBAAM,qBAAqB,CAAC,oBAAoB,CAAC,UAAU,EAAE,YAAY,EAAE,OAAO,CAAC,EAAA;;wBAD5F,UAAU;wBACV,MAAM,GAAG,SAAmF,CAAA;wBAE5F,IAAI,MAAM,IAAI,MAAM,KAAK,CAAC,EAAE;4BAC1B,sBAAO,kBAAY,CAAC,OAAO,CAAC,IAAI,CAAC,EAAA;yBAClC;6BAAM;4BACL,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAA;4BAC7B,sBAAO,kBAAY,CAAC,KAAK,CAAC,sBAAU,CAAC,YAAY,EAAE,QAAQ,CAAC,EAAA;yBAC7D;;;;;;KAEJ;IAtDD;QAFC,0BAAc,CAAC,yBAAU,CAAC;QAC1B,oBAAQ,CAAC,CAAC,+BAAqB,CAAC,CAAC;;;;iEAuDjC;IACH,4BAAC;CAAA,AA9DD,IA8DC;kBA9DoB,qBAAqB"}
\ No newline at end of file
server/duibats/dist/decorator/index.js
View file @
5bcb2a32
...
...
@@ -7,7 +7,7 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (functi
o
[
k2
]
=
m
[
k
];
}));
var
__exportStar
=
(
this
&&
this
.
__exportStar
)
||
function
(
m
,
exports
)
{
for
(
var
p
in
m
)
if
(
p
!==
"default"
&&
!
exports
.
hasOwnProperty
(
p
))
__createBinding
(
exports
,
m
,
p
);
for
(
var
p
in
m
)
if
(
p
!==
"default"
&&
!
Object
.
prototype
.
hasOwnProperty
.
call
(
exports
,
p
))
__createBinding
(
exports
,
m
,
p
);
};
Object
.
defineProperty
(
exports
,
"__esModule"
,
{
value
:
true
});
/** @format */
...
...
server/duibats/dist/service/activityconfig.service.d.ts
View file @
5bcb2a32
...
...
@@ -45,4 +45,5 @@ export default class ActivityConfigService {
formatPrizeConfig
(
prizeConfig
:
Array
<
IActivityPrize
>
):
{
prizeList
:
IActivityPrize
[];
};
setPrizeProbalityRange
(
prizes
:
IActivityPrize
[]):
IActivityPrize
[];
}
server/duibats/dist/service/activityconfig.service.js
View file @
5bcb2a32
...
...
@@ -58,6 +58,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
var
sdk_1
=
require
(
"../sdk"
);
var
db_1
=
require
(
"../db"
);
var
constants_1
=
require
(
"../constants"
);
var
utils_1
=
require
(
"../utils"
);
var
ActivityConfigService
=
/** @class */
(
function
()
{
function
ActivityConfigService
(
context
)
{
this
.
activityconfigDao
=
new
sdk_1
.
BaseDao
(
context
,
db_1
.
ACTIVITY_CONFIG_DB_NAME
);
...
...
@@ -554,6 +555,19 @@ var ActivityConfigService = /** @class */ (function () {
prizeList
:
prizeConfig
};
};
// 概率奖品配置 properiodfrom properiodto
ActivityConfigService
.
prototype
.
setPrizeProbalityRange
=
function
(
prizes
)
{
var
originPeriod
=
1
;
return
prizes
.
map
(
function
(
v
)
{
if
(
!
v
.
probability
)
return
v
;
var
properiodfrom
=
originPeriod
;
var
properiodto
=
+
originPeriod
+
utils_1
.
signFigures
(
+
v
.
probability
*
100
)
-
1
;
originPeriod
=
+
originPeriod
+
utils_1
.
signFigures
(
+
v
.
probability
*
100
);
return
__assign
(
__assign
({},
v
),
{
properiodfrom
:
properiodfrom
,
properiodto
:
properiodto
});
});
};
return
ActivityConfigService
;
}());
exports
.
default
=
ActivityConfigService
;
...
...
server/duibats/dist/service/activityconfig.service.js.map
View file @
5bcb2a32
{"version":3,"file":"activityconfig.service.js","sourceRoot":"","sources":["../../src/service/activityconfig.service.ts"],"names":[],"mappings":";AAAA,cAAc;;;;;;;;;;;;;;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;wBACD,sBAAO,IAAI,EAAA;;;wBAEX,OAAO;wBACP,OAAO,CAAC,GAAG,CAAC,GAAC,CAAC,CAAA;wBACd,sBAAO,KAAK,EAAA;;;;;KAEf;IACD;;;;;;OAMG;IACH,iDAAiB,GAAjB,UAAkB,WAAkC;QAClD,OAAO;YACL,SAAS,EAAE,WAAW;SACvB,CAAA;IACH,CAAC;IACH,4BAAC;AAAD,CAAC,AAnYD,IAmYC"}
\ No newline at end of file
{"version":3,"file":"activityconfig.service.js","sourceRoot":"","sources":["../../src/service/activityconfig.service.ts"],"names":[],"mappings":";AAAA,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEd,8BAAgC;AAChC,4BAAqE;AAErE,0CAA+D;AAC/D,kCAAuC;AAEvC;IAGE,+BAAY,OAAgB;QAC1B,IAAI,CAAC,iBAAiB,GAAG,IAAI,aAAO,CAAC,OAAO,EAAE,4BAAuB,CAAC,CAAA;QACtE,IAAI,CAAC,sBAAsB,GAAG,IAAI,aAAO,CAAC,OAAO,EAAE,yBAAoB,CAAC,CAAA;IAC1E,CAAC;IAED,QAAQ;IACF,+CAAe,GAArB,UAAsB,UAA6B,EAAE,KAA4B,EAAE,MAAc;;;;;;;wBAEhF,qBAAM,IAAI,CAAC,iBAAiB,CAAC,SAAS,uBAC9C,UAAU,KACb,UAAU,EAAE,IAAI,CAAC,GAAG,EAAE,EACtB,UAAU,EAAE,IAAI,CAAC,GAAG,EAAE,EACtB,YAAY,EAAE,yBAAa,CAAC,KAAK,EACjC,eAAe,EAAE,6BAAiB,CAAC,UAAU,IAC7C,EAAA;;wBANE,WAAS,SAMX;wBACF,OAAO,CAAC,GAAG,CAAC,QAAM,EAAE,cAAc,CAAC,CAAA;6BAC/B,QAAM,EAAN,wBAAM;;;;wBAEN,KAAK,GAAG,KAAK,CAAC,GAAG,CAAC,UAAA,IAAI;4BACpB,6BACK,IAAI,KACP,UAAU,EAAE,QAAM,EACl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at end of file
server/duibats/dist/service/index.js
View file @
5bcb2a32
"use strict"
;
/** @format */
Object
.
defineProperty
(
exports
,
"__esModule"
,
{
value
:
true
});
exports
.
AwardsService
=
exports
.
InstanceService
=
exports
.
SellerService
=
exports
.
TaobaoTopService
=
exports
.
ActivityconfigService
=
void
0
;
var
activityconfig_service_1
=
require
(
"./activityconfig.service"
);
Object
.
defineProperty
(
exports
,
"ActivityconfigService"
,
{
enumerable
:
true
,
get
:
function
()
{
return
activityconfig_service_1
.
default
;
}
});
var
taobaoTop_service_1
=
require
(
"./taobaoTop.service"
);
...
...
server/duibats/dist/service/index.js.map
View file @
5bcb2a32
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/service/index.ts"],"names":[],"mappings":";AAAA,cAAc;;AAEd,mEAA2E;AAAlE,+HAAA,OAAO,OAAyB;AACzC,yDAAiE;AAAxD,qHAAA,OAAO,OAAoB;AACpC,mDAA2D;AAAlD,+GAAA,OAAO,OAAiB;AACjC,uDAA+D;AAAtD,mHAAA,OAAO,OAAmB;AACnC,mDAA2D;AAAlD,+GAAA,OAAO,OAAiB"}
\ No newline at end of file
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/service/index.ts"],"names":[],"mappings":";AAAA,cAAc;;;AAEd,mEAA2E;AAAlE,+HAAA,OAAO,OAAyB;AACzC,yDAAiE;AAAxD,qHAAA,OAAO,OAAoB;AACpC,mDAA2D;AAAlD,+GAAA,OAAO,OAAiB;AACjC,uDAA+D;AAAtD,mHAAA,OAAO,OAAmB;AACnC,mDAA2D;AAAlD,+GAAA,OAAO,OAAiB"}
\ No newline at end of file
server/duibats/dist/utils/index.js
View file @
5bcb2a32
...
...
@@ -8,7 +8,7 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (functi
o
[
k2
]
=
m
[
k
];
}));
var
__exportStar
=
(
this
&&
this
.
__exportStar
)
||
function
(
m
,
exports
)
{
for
(
var
p
in
m
)
if
(
p
!==
"default"
&&
!
exports
.
hasOwnProperty
(
p
))
__createBinding
(
exports
,
m
,
p
);
for
(
var
p
in
m
)
if
(
p
!==
"default"
&&
!
Object
.
prototype
.
hasOwnProperty
.
call
(
exports
,
p
))
__createBinding
(
exports
,
m
,
p
);
};
Object
.
defineProperty
(
exports
,
"__esModule"
,
{
value
:
true
});
__exportStar
(
require
(
"./logger"
),
exports
);
...
...
server/duibats/dist/utils/math.d.ts
View file @
5bcb2a32
/** @format */
export
declare
function
MathRand
():
string
;
export
declare
const
signFigures
:
(
num
:
any
,
rank
?:
number
)
=>
number
;
server/duibats/dist/utils/math.js
View file @
5bcb2a32
"use strict"
;
/** @format */
Object
.
defineProperty
(
exports
,
"__esModule"
,
{
value
:
true
});
exports
.
MathRand
=
void
0
;
exports
.
signFigures
=
exports
.
MathRand
=
void
0
;
function
MathRand
()
{
var
Num
=
''
;
for
(
var
i
=
0
;
i
<
6
;
i
++
)
{
...
...
@@ -10,4 +10,24 @@ function MathRand() {
return
Num
;
}
exports
.
MathRand
=
MathRand
;
//小数相乘
exports
.
signFigures
=
function
(
num
,
rank
)
{
if
(
rank
===
void
0
)
{
rank
=
6
;
}
if
(
!
num
)
return
0
;
var
sign
=
num
/
Math
.
abs
(
num
);
var
number
=
num
*
sign
;
var
temp
=
rank
-
1
-
Math
.
floor
(
Math
.
log10
(
number
));
var
ans
;
if
(
temp
>
0
)
{
ans
=
parseFloat
(
number
.
toFixed
(
temp
));
}
else
if
(
temp
<
0
)
{
ans
=
Math
.
round
(
number
/
Math
.
pow
(
10
,
temp
))
*
temp
;
}
else
{
ans
=
Math
.
round
(
number
);
}
return
ans
*
sign
;
};
//# sourceMappingURL=math.js.map
\ No newline at end of file
server/duibats/dist/utils/math.js.map
View file @
5bcb2a32
{"version":3,"file":"math.js","sourceRoot":"","sources":["../../src/utils/math.ts"],"names":[],"mappings":";AAAA,cAAc;;;AAEd,SAAgB,QAAQ;IACtB,IAAI,GAAG,GAAG,EAAE,CAAA;IACZ,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE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GAAG,IAAI,CAAC;KACtD;SAAM;QACL,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;KAC1B;IACD,OAAO,GAAG,GAAG,IAAI,CAAC;AACpB,CAAC,CAAC"}
\ No newline at end of file
server/duibats/src/controller/save.controller.ts
View file @
5bcb2a32
...
...
@@ -28,7 +28,7 @@ export default class ActivitSaveController {
@
paramsValidate
(
saveParams
)
@
services
([
ActivityconfigService
])
async
saveActivityInfo
(
context
:
ISaveActivityContext
,
{},
[
activityconfigService
]:
[
ActivityconfigService
])
{
cons
t
{
title
=
''
,
activityId
=
''
,
startTime
,
endTime
,
tasks
=
{},
rule
,
prizeList
}
=
context
.
data
le
t
{
title
=
''
,
activityId
=
''
,
startTime
,
endTime
,
tasks
=
{},
rule
,
prizeList
}
=
context
.
data
const
{
openId
}
=
context
// 存在b_activity_config表里属于基础配置
...
...
@@ -43,6 +43,9 @@ export default class ActivitSaveController {
awardReceiveExpiredTime
:
endTime
+
_48_HOURS
}
// 概率奖品配置需要增加 properiodfrom properiodto字段
// prizeList = activityconfigService.setPrizeProbalityRange(prizeList)
// 所有奖品均存在b_prize_config表里, 根据需求定义的奖品参数都要整合到allPrizeLists里
const
allPrizeList
:
Array
<
IActivityPrize
>
=
[...
prizeList
]
...
...
server/duibats/src/service/activityconfig.service.ts
View file @
5bcb2a32
...
...
@@ -4,6 +4,7 @@ import { BaseDao } from '../sdk'
import
{
ACTIVITY_CONFIG_DB_NAME
,
PRIZE_CONFIG_DB_NAME
}
from
'../db'
import
{
DELETE_STATUS
,
OPEN_PRIZE_STATUS
}
from
'../constants'
import
{
signFigures
}
from
'../utils'
;
export
default
class
ActivityConfigService
{
activityconfigDao
:
IBaseDao
...
...
@@ -392,4 +393,19 @@ export default class ActivityConfigService {
prizeList
:
prizeConfig
}
}
// 概率奖品配置 properiodfrom properiodto
setPrizeProbalityRange
(
prizes
:
IActivityPrize
[])
{
let
originPeriod
=
1
;
return
prizes
.
map
((
v
)
=>
{
if
(
!
v
.
probability
)
return
v
const
properiodfrom
=
originPeriod
;
const
properiodto
=
+
originPeriod
+
signFigures
(
+
v
.
probability
*
100
)
-
1
;
originPeriod
=
+
originPeriod
+
signFigures
(
+
v
.
probability
*
100
);
return
{
...
v
,
properiodfrom
,
properiodto
};
})
}
}
server/duibats/src/typings/activity.d.ts
View file @
5bcb2a32
...
...
@@ -7,8 +7,8 @@ interface IActivityBaseInfo {
startTime
:
number
endTime
:
number
title
:
string
deleteStatus
?:
1
|
2
openPrizeStatus
?:
1
|
2
|
3
|
4
deleteStatus
?:
number
openPrizeStatus
?:
number
remark
?:
string
createTime
?:
number
updateTime
?:
number
...
...
@@ -20,15 +20,15 @@ interface IActivityPrize {
_id
?:
string
activityId
?:
string
ename
?:
string
prize
Type
:
1
|
2
type
:
1
|
2
|
3
|
4
|
5
prize
DataType
:
number
type
:
number
image
:
string
name
:
string
probability
?:
string
|
number
properiodto
:
number
properiodfrom
:
number
lockStatus
?:
1
|
2
switchStock
?:
1
|
2
lockStatus
?:
number
switchStock
?:
number
rank
?:
string
|
number
useUrl
?:
string
stock
:
number
...
...
server/duibats/src/utils/math.ts
View file @
5bcb2a32
...
...
@@ -7,3 +7,20 @@ export function MathRand() {
}
return
Num
}
//小数相乘
export
const
signFigures
=
function
(
num
,
rank
=
6
)
{
if
(
!
num
)
return
0
;
const
sign
=
num
/
Math
.
abs
(
num
);
const
number
=
num
*
sign
;
const
temp
=
rank
-
1
-
Math
.
floor
(
Math
.
log10
(
number
));
let
ans
;
if
(
temp
>
0
)
{
ans
=
parseFloat
(
number
.
toFixed
(
temp
));
}
else
if
(
temp
<
0
)
{
ans
=
Math
.
round
(
number
/
Math
.
pow
(
10
,
temp
))
*
temp
;
}
else
{
ans
=
Math
.
round
(
number
);
}
return
ans
*
sign
;
};
\ 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