Commit ebf04135 authored by qinhaitao's avatar qinhaitao

feat: 🎸 集卡状态

parent 2dbe42a1
...@@ -121,15 +121,19 @@ export enum FREE_TYPE { ...@@ -121,15 +121,19 @@ export enum FREE_TYPE {
EVERY_DAY = 2 EVERY_DAY = 2
} }
// 功能开启状态
export enum FEATURE_OPEN_STATUS { export enum FEATURE_OPEN_STATUS {
CLOSE = 1, CLOSE = 1,
OPEN = 2 OPEN = 2
} }
// 赠送卡片是否开启
export const GIFT_CARD_STATUS = FEATURE_OPEN_STATUS.OPEN export const GIFT_CARD_STATUS = FEATURE_OPEN_STATUS.OPEN
// 任务模块是否开启
export const TASK_OPEN_STATUS = FEATURE_OPEN_STATUS.OPEN export const TASK_OPEN_STATUS = FEATURE_OPEN_STATUS.OPEN
// 每次参与消耗次数
export const JOIN_NEED_TIMES = 1 export const JOIN_NEED_TIMES = 1
export const appId = '${需要补充}' export const appId = '${需要补充}'
......
...@@ -87,6 +87,8 @@ export default class AwardsService extends UserService { ...@@ -87,6 +87,8 @@ export default class AwardsService extends UserService {
provice: 1, provice: 1,
city: 1, city: 1,
area: 1, area: 1,
streetName: 1,
addressDetail: 1,
remark: 1, remark: 1,
useUrl: 1, useUrl: 1,
shipCompany: 1, shipCompany: 1,
......
...@@ -4,10 +4,10 @@ import { resultsModel } from '../../../sdk' ...@@ -4,10 +4,10 @@ import { resultsModel } from '../../../sdk'
import { CODE_TYPES } from '../../../errorCode' import { CODE_TYPES } from '../../../errorCode'
import { getToday } from '../getToday' 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 { gameTimes, gameTimesEverday } = userInfo
const today = getToday() const today = getToday()
if (!gameTimesEverday?.[today] && !gameTimes) { if (!gameTimesEverday?.[today] && !gameTimes) {
return CODE_TYPES.ERROR_NO_GAME_TIMES return resultsModel.error(CODE_TYPES.ERROR_NO_GAME_TIMES)
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment