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
ebf04135
Commit
ebf04135
authored
Dec 03, 2020
by
qinhaitao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:
🎸
集卡状态
parent
2dbe42a1
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
2 deletions
+8
-2
constants.ts
v2.0/src/constants.ts
+4
-0
awards.service.ts
v2.0/src/service/common/awards.service.ts
+2
-0
checkCardGameTimes.ts
v2.0/src/utils/common/check/checkCardGameTimes.ts
+2
-2
No files found.
v2.0/src/constants.ts
View file @
ebf04135
...
...
@@ -121,15 +121,19 @@ export enum FREE_TYPE {
EVERY_DAY
=
2
}
// 功能开启状态
export
enum
FEATURE_OPEN_STATUS
{
CLOSE
=
1
,
OPEN
=
2
}
// 赠送卡片是否开启
export
const
GIFT_CARD_STATUS
=
FEATURE_OPEN_STATUS
.
OPEN
// 任务模块是否开启
export
const
TASK_OPEN_STATUS
=
FEATURE_OPEN_STATUS
.
OPEN
// 每次参与消耗次数
export
const
JOIN_NEED_TIMES
=
1
export
const
appId
=
'${需要补充}'
...
...
v2.0/src/service/common/awards.service.ts
View file @
ebf04135
...
...
@@ -87,6 +87,8 @@ export default class AwardsService extends UserService {
provice
:
1
,
city
:
1
,
area
:
1
,
streetName
:
1
,
addressDetail
:
1
,
remark
:
1
,
useUrl
:
1
,
shipCompany
:
1
,
...
...
v2.0/src/utils/common/check/checkCardGameTimes.ts
View file @
ebf04135
...
...
@@ -4,10 +4,10 @@ import { resultsModel } from '../../../sdk'
import
{
CODE_TYPES
}
from
'../../../errorCode'
import
{
getToday
}
from
'../getToday'
export
default
async
function
checkCardGameTimes
(
context
:
IContext
<
IParams
>
,
{
vipInfo
,
userInfo
}:
IControllerInfos
)
{
export
default
async
function
checkCardGameTimes
(
context
:
IContext
<
IParams
>
,
{
userInfo
}:
IControllerInfos
)
{
const
{
gameTimes
,
gameTimesEverday
}
=
userInfo
const
today
=
getToday
()
if
(
!
gameTimesEverday
?.[
today
]
&&
!
gameTimes
)
{
return
CODE_TYPES
.
ERROR_NO_GAME_TIMES
return
resultsModel
.
error
(
CODE_TYPES
.
ERROR_NO_GAME_TIMES
)
}
}
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