Commit cde4439e authored by qinhaitao's avatar qinhaitao

fix: 🐛 error

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