🐞 fix(后台): 修复后台活动积分&大区配置bug
This commit is contained in:
@@ -89,8 +89,8 @@ export default class ActivityController extends Controller {
|
||||
|
||||
public async updateActivityTaskPoint() {
|
||||
const { ctx } = this;
|
||||
const { taskType, taskId, activityId, point } = ctx.request.body;
|
||||
ctx.body = await ctx.service.activity.updateActivityTaskPoint(taskType, taskId, activityId, point);
|
||||
const { type, taskId, activityId, point, taskType, activityType } = ctx.request.body;
|
||||
ctx.body = await ctx.service.activity.updateActivityTaskPoint(type, taskId, activityId, activityType, taskType, point);
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
@@ -177,9 +177,9 @@ export default class Activity extends Service {
|
||||
return ctx.service.utils.resResult(STATUS.SUCCESS);
|
||||
}
|
||||
|
||||
public async updateActivityTaskPoint(taskType: number, taskId: number, activityId: number, point: number) {
|
||||
public async updateActivityTaskPoint(type: number, taskId: number, activityId: number, activityType: number, taskType: number, point: number) {
|
||||
const { ctx } = this;
|
||||
let result = await ActivityTaskPointModel.updateData(taskType, taskId, activityId, point, ctx.user?.uid);
|
||||
let result = await ActivityTaskPointModel.updateData(type, taskId, activityId, activityType, taskType, point, ctx.user?.uid);
|
||||
if(!result) return ctx.service.utils.resResult(STATUS.WRONG_PARMS);
|
||||
return ctx.service.utils.resResult(STATUS.SUCCESS);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user