Commit 702942cc authored by qinhaitao's avatar qinhaitao

feat: 🎸 隐藏接口

parent 1b5c1ece
......@@ -71,21 +71,20 @@ var Task = /** @class */ (function () {
var userInfo = _a.userInfo, vipInfo = _a.vipInfo, activityInfo = _a.activityInfo, session = _a.session;
var taskService = _b[0];
return __awaiter(this, void 0, void 0, function () {
var tasks, startTime, updatedUserInfo, _c, _d, _e, _f, vipTask, followTask;
return __generator(this, function (_g) {
switch (_g.label) {
var tasks, startTime, updatedUserInfo, vipTask, followTask;
return __generator(this, function (_c) {
switch (_c.label) {
case 0:
tasks = activityInfo.tasks, startTime = activityInfo.startTime;
_d = (_c = taskService).updateTasks;
_e = [userInfo._id];
_f = [taskService.updateVipTask(userInfo, vipInfo, tasks),
taskService.updateSignTask(userInfo, tasks)];
return [4 /*yield*/, taskService.updateOrderGoodsTask(userInfo, tasks, startTime, session)];
case 1: return [4 /*yield*/, _d.apply(_c, _e.concat([_f.concat([
_g.sent()
]), userInfo]))];
case 2:
updatedUserInfo = _g.sent();
return [4 /*yield*/, taskService.updateTasks(userInfo._id,
// 需要查询更新的任务
[
taskService.updateVipTask(userInfo, vipInfo, tasks)
// taskService.updateSignTask(userInfo, tasks),
// await taskService.updateOrderGoodsTask(userInfo, tasks, startTime, session)
], userInfo)];
case 1:
updatedUserInfo = _c.sent();
if (!updatedUserInfo)
return [2 /*return*/, sdk_1.resultsModel.error(constants_1.CODE_TYPES.SYSTEM_ERROR, '更新任务列表失败')
// 会员任务
......
This diff is collapsed.
......@@ -28,9 +28,9 @@ export default class Task {
userInfo._id,
// 需要查询更新的任务
[
taskService.updateVipTask(userInfo, vipInfo, tasks),
taskService.updateSignTask(userInfo, tasks),
await taskService.updateOrderGoodsTask(userInfo, tasks, startTime, session)
taskService.updateVipTask(userInfo, vipInfo, tasks)
// taskService.updateSignTask(userInfo, tasks),
// await taskService.updateOrderGoodsTask(userInfo, tasks, startTime, session)
],
userInfo
)
......
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