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
87d5af83
Commit
87d5af83
authored
Nov 17, 2020
by
qinhaitao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:
🐛
bug
parent
200a5129
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
9 deletions
+15
-9
awards.controller.ts
v2.0/src/controller/common/awards.controller.ts
+3
-3
share.controller.ts
v2.0/src/controller/common/share.controller.ts
+1
-1
task.controller.ts
v2.0/src/controller/common/task.controller.ts
+10
-4
test2.controller.ts
v2.0/src/controller/custom/test2.controller.ts
+1
-1
No files found.
v2.0/src/controller/common/awards.controller.ts
View file @
87d5af83
...
...
@@ -30,8 +30,8 @@ export default class AwardsController {
* 领取实物
*/
@
checkParams
([
'activityId'
,
'id'
,
'name'
,
'phone'
,
'province'
,
'city'
,
'area'
,
'addressDetail'
,
'streetName'
])
@
preCheck
([
checkPrizeExpired
,
checkValidObjectPrize
])
@
services
([
CommonAwardsService
])
@
preCheck
([
checkPrizeExpired
,
checkValidObjectPrize
])
async
receiveObjectPrize
(
context
:
IContext
<
IParams
>
,
{
activityInfo
,
userInfo
}:
IControllerInfos
,
...
...
@@ -48,8 +48,8 @@ export default class AwardsController {
*/
@
checkParams
([
'activityId'
,
'id'
])
@
registeInfos
([
'session'
])
@
preCheck
([
checkPrizeExpired
,
checkValidEnamePrize
])
@
services
([
CommonAwardsService
])
@
preCheck
([
checkPrizeExpired
,
checkValidEnamePrize
])
async
receiveEnamePrize
(
context
:
IContext
<
IParams
>
,
{
activityInfo
,
userInfo
,
session
}:
IControllerInfos
,
...
...
@@ -70,8 +70,8 @@ export default class AwardsController {
*/
@
checkParams
([
'activityId'
,
'prizeDataType'
])
@
registeInfos
([
'session'
])
@
preCheck
([
checkActivityTime
])
@
services
([
CommonAwardsService
])
@
preCheck
([
checkActivityTime
])
async
drawLotteryPrize
(
context
:
IContext
<
IParams
>
,
{
activityInfo
,
userInfo
,
session
}:
IControllerInfos
,
...
...
v2.0/src/controller/common/share.controller.ts
View file @
87d5af83
...
...
@@ -30,8 +30,8 @@ export default class ShareController {
*/
@
checkParams
([
'activityId'
,
'inviteId'
])
@
registeInfos
([
'vipInfo'
])
@
preCheck
([
checkActivityTime
,
checkInviteId
,
checkNewVip
,
checkHelpRecord
])
@
services
([
CommonTaskService
,
CommonStatService
])
@
preCheck
([
checkActivityTime
,
checkInviteId
,
checkNewVip
,
checkHelpRecord
])
async
doHelp
(
context
:
IContext
<
IParams
>
,
{
activityInfo
,
userInfo
,
vipInfo
}:
IControllerInfos
,
...
...
v2.0/src/controller/common/task.controller.ts
View file @
87d5af83
/** @format */
import
{
services
,
checkParams
,
registeInfos
,
preCheck
,
preUpdate
}
from
'../../decorator/common'
import
{
checkActivityTime
,
checkTaskLimit
,
checkExchangeCreditsTask
,
checkRemainTimes
}
from
'../../utils/common/check'
import
{
checkActivityTime
,
checkTaskLimit
,
checkExchangeCreditsTask
,
checkUserInfo
,
checkRemainTimes
}
from
'../../utils/common/check'
import
{
updateVip
,
updateSignTask
,
updateOrderGoods
}
from
'../../utils/common/update'
import
customUtil
from
'../../utils/custom'
import
{
resultsModel
}
from
'../../sdk'
...
...
@@ -12,9 +18,9 @@ export default class TaskController {
*/
@
checkParams
([
'activityId'
])
@
registeInfos
([
'vipInfo'
])
@
services
([
CommonTaskService
])
@
preCheck
([
checkActivityTime
])
@
preUpdate
([
updateVip
,
updateSignTask
,
updateOrderGoods
])
@
services
([
CommonTaskService
])
async
getTaskList
(
context
:
IContext
<
IParams
>
,
{
activityInfo
,
userInfo
,
vipInfo
}:
IControllerInfos
,
...
...
@@ -30,8 +36,8 @@ export default class TaskController {
*/
@
checkParams
([
'activityId'
,
'taskType'
])
@
registeInfos
([
'session'
])
@
preCheck
([
checkActivityTime
,
checkTaskLimit
,
checkExchangeCreditsTask
])
@
services
([
CommonTaskService
])
@
preCheck
([
checkActivityTime
,
checkTaskLimit
,
checkExchangeCreditsTask
,
checkUserInfo
()])
async
doCompleteTask
(
context
:
IContext
<
IParams
>
,
{
activityInfo
,
userInfo
,
session
}:
IControllerInfos
,
...
...
@@ -50,8 +56,8 @@ export default class TaskController {
* 领取任务奖励
*/
@
checkParams
([
'activityId'
,
'taskType'
,
'rewardsKey'
])
@
preCheck
([
checkActivityTime
,
checkRemainTimes
])
@
services
([
CommonTaskService
])
@
preCheck
([
checkActivityTime
,
checkRemainTimes
])
async
receiveTaskRewards
(
context
:
IContext
<
IParams
>
,
{
activityInfo
,
userInfo
}:
IControllerInfos
,
...
...
v2.0/src/controller/custom/test2.controller.ts
View file @
87d5af83
...
...
@@ -25,8 +25,8 @@ export default class Test2Controller {
* 统计数据
*/
@
checkParams
([
'activityId'
,
'startDay'
,
'endDay'
])
@
preUpdate
([
updateVip
,
updateSignTask
,
updateOrderGoods
])
@
services
([
CommonStatService
])
@
preUpdate
([
updateVip
(
1
,
2
),
updateSignTask
,
updateOrderGoods
])
async
test2getStats
(
context
:
IContext
<
IParams
>
,
{
activityInfo
,
userInfo
}:
IControllerInfos
,
...
...
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