Commit cde4439e authored by qinhaitao's avatar qinhaitao

fix: 🐛 error

parent 1553e7a0
......@@ -14,7 +14,7 @@ export default class BaseController {
* 活动基本信息
*/
@commonDecorator.checkParams(['activityId'])
@commonDecorator.noCheckUser(['activityId'])
@commonDecorator.noCheckUser
@services([CommonBaseService])
async getActivityBaseInfoById(
context: IContext<IParams>,
......
......@@ -14,7 +14,7 @@ export default class LoginController {
* 登录接口, 初始化/更新用户信息
*/
@commonDecorator.checkParams(['activityId', 'userNick', 'avatar', 'isFollow'])
@commonDecorator.noCheckUser(['activityId'])
@commonDecorator.noCheckUser
@commonDecorator.registeInfos(['vipInfo'])
@services([CommonUserService, CommonAccessService])
async login(
......
......@@ -35,8 +35,16 @@ export default class StatController {
{ activityInfo, userInfo }: IControllerInfos,
[commonStatService]: [CommonStatService]
) {
const commonStatGetStatsResult1 = await commonStatService.getStats(context.data.activityId, context.data.startDay, context.data.endDay)
const commonStatBuildExcelResult2 = await commonStatService.buildExcel(context.data.startDay, context.data.endDay, commonStatGetStatsResult1)
const commonStatGetStatsResult1 = await commonStatService.getStats(
context.data.activityId,
context.data.startDay,
context.data.endDay
)
const commonStatBuildExcelResult2 = await commonStatService.buildExcel(
context.data.startDay,
context.data.endDay,
commonStatGetStatsResult1
)
return resultsModel.success({
...commonStatBuildExcelResult2
})
......
......@@ -15,8 +15,8 @@ export default class TaskController {
*/
@commonDecorator.checkParams(['activityId'])
@commonDecorator.registeInfos(['vipInfo'])
@commonDecorator.preCheck([commonUtilCheck.checkActivityTime)]
@commonDecorator.preUpdate([commonUtilUpdate.updateVip, commonUtilUpdate.updateSignTask, commonUtilUpdate.updateOrderGoods)]
@commonDecorator.preCheck([commonUtilCheck.checkActivityTime])
@commonDecorator.preUpdate([commonUtilUpdate.updateVip, commonUtilUpdate.updateSignTask, commonUtilUpdate.updateOrderGoods])
@services([CommonTaskService])
async getTaskList(
context: IContext<IParams>,
......@@ -33,7 +33,7 @@ export default class TaskController {
*/
@commonDecorator.checkParams(['activityId', 'taskType'])
@commonDecorator.registeInfos(['session'])
@commonDecorator.preCheck([commonUtilCheck.checkActivityTime, commonUtilCheck.checkTaskLimit, commonUtilCheck.checkExchangeCreditsTask)]
@commonDecorator.preCheck([commonUtilCheck.checkActivityTime, commonUtilCheck.checkTaskLimit, commonUtilCheck.checkExchangeCreditsTask])
@services([CommonTaskService])
async doCompleteTask(
context: IContext<IParams>,
......@@ -49,7 +49,7 @@ export default class TaskController {
* 领取任务奖励
*/
@commonDecorator.checkParams(['activityId', 'taskType', 'rewardsKey'])
@commonDecorator.preCheck([commonUtilCheck.checkActivityTime, commonUtilCheck.checkRemainTimes)]
@commonDecorator.preCheck([commonUtilCheck.checkActivityTime, commonUtilCheck.checkRemainTimes])
@services([CommonTaskService])
async receiveTaskRewards(
context: IContext<IParams>,
......
......@@ -17,7 +17,6 @@ export default class Test1Controller {
*/
@commonDecorator.checkParams(['activityId', 'type'])
@customDecorator.test1(['tt'])
@commonDecorator.noCatch
@services([CommonStatService, CustomTestService])
async addStat(
context: IContext<IParams>,
......
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