Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
taobao-mini-template
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
2
Issues
2
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
qinhaitao
taobao-mini-template
Commits
702942cc
Commit
702942cc
authored
Sep 02, 2020
by
qinhaitao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:
🎸
隐藏接口
parent
1b5c1ece
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
17 deletions
+16
-17
task.controller.js
v2.0/dist/controller/task.controller.js
+12
-13
task.controller.js.map
v2.0/dist/controller/task.controller.js.map
+1
-1
task.controller.ts
v2.0/src/controller/task.controller.ts
+3
-3
No files found.
v2.0/dist/controller/task.controller.js
View file @
702942cc
...
...
@@ -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
,
'更新任务列表失败'
)
// 会员任务
...
...
v2.0/dist/controller/task.controller.js.map
View file @
702942cc
This diff is collapsed.
Click to expand it.
v2.0/src/controller/task.controller.ts
View file @
702942cc
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment