Commit f24c72a9 authored by maggie's avatar maggie

save

parent 1194827e
...@@ -11,13 +11,6 @@ ...@@ -11,13 +11,6 @@
"params": [ "params": [
"activityId" "activityId"
] ]
},
{
"type": "common",
"name": "registeInfos",
"params": [
"session"
]
} }
], ],
"main": [ "main": [
...@@ -27,7 +20,7 @@ ...@@ -27,7 +20,7 @@
"function": "getShopVip", "function": "getShopVip",
"params": [ "params": [
{ "type": "var", "value": "context" }, { "type": "var", "value": "context" },
{ "type": "var", "value": "session" } { "type": "var", "value": "activityInfo" }
], ],
"return": true "return": true
} }
...@@ -128,11 +121,10 @@ ...@@ -128,11 +121,10 @@
{ {
"type": "common", "type": "common",
"service": "task", "service": "task",
"function": "initTask", "function": "initTaskList",
"params": [ "params": [
{ "type": "var", "value": "context.data.taskType" }, { "type": "var", "value": "userInfo" },
{ "type": "var", "value": "activityInfo" }, { "type": "var", "value": "activityInfo" }
{ "type": "var", "value": "userInfo" }
], ],
"return": true "return": true
} }
......
...@@ -22,7 +22,7 @@ export default class StatController { ...@@ -22,7 +22,7 @@ export default class StatController {
) { ) {
const commonStatAddStatResult1 = await commonStatService.addStat(context.data.type, userInfo) const commonStatAddStatResult1 = await commonStatService.addStat(context.data.type, userInfo)
return resultsModel.success({ return resultsModel.success({
commonStatAddStatResult1 ...commonStatAddStatResult1
}) })
} }
/** /**
......
...@@ -23,9 +23,9 @@ export default class TaskController { ...@@ -23,9 +23,9 @@ export default class TaskController {
{ activityInfo, userInfo, vipInfo }: IControllerInfos, { activityInfo, userInfo, vipInfo }: IControllerInfos,
[commonTaskService]: [CommonTaskService] [commonTaskService]: [CommonTaskService]
) { ) {
const commonTaskInitTaskResult1 = await commonTaskService.initTask(context.data.taskType, activityInfo, userInfo) const commonTaskInitTaskListResult1 = await commonTaskService.initTaskList(userInfo, activityInfo)
return resultsModel.success({ return resultsModel.success({
...commonTaskInitTaskResult1 ...commonTaskInitTaskListResult1
}) })
} }
/** /**
...@@ -42,7 +42,7 @@ export default class TaskController { ...@@ -42,7 +42,7 @@ export default class TaskController {
) { ) {
const commonTaskCompleteTaskResult1 = await commonTaskService.completeTask(context.data.taskType, activityInfo, userInfo) const commonTaskCompleteTaskResult1 = await commonTaskService.completeTask(context.data.taskType, activityInfo, userInfo)
return resultsModel.success({ return resultsModel.success({
commonTaskCompleteTaskResult1 ...commonTaskCompleteTaskResult1
}) })
} }
/** /**
......
...@@ -14,14 +14,13 @@ export default class UserController { ...@@ -14,14 +14,13 @@ export default class UserController {
* 获取会员信息 * 获取会员信息
*/ */
@commonDecorator.checkParams(['activityId']) @commonDecorator.checkParams(['activityId'])
@commonDecorator.registeInfos(['session'])
@services([CommonUserService]) @services([CommonUserService])
async getVipInfo( async getVipInfo(
context: IContext<IParams>, context: IContext<IParams>,
{ activityInfo, userInfo, session }: IControllerInfos, { activityInfo, userInfo }: IControllerInfos,
[commonUserService]: [CommonUserService] [commonUserService]: [CommonUserService]
) { ) {
const commonUserGetShopVipResult1 = await commonUserService.getShopVip(context, session) const commonUserGetShopVipResult1 = await commonUserService.getShopVip(context, activityInfo)
return resultsModel.success({ return resultsModel.success({
...commonUserGetShopVipResult1 ...commonUserGetShopVipResult1
}) })
......
...@@ -22,7 +22,7 @@ export default class Test2Controller { ...@@ -22,7 +22,7 @@ export default class Test2Controller {
) { ) {
const commonStatAddStatResult1 = await commonStatService.addStat(context.data.type, userInfo) const commonStatAddStatResult1 = await commonStatService.addStat(context.data.type, userInfo)
return resultsModel.success({ return resultsModel.success({
commonStatAddStatResult1 ...commonStatAddStatResult1
}) })
} }
/** /**
......
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