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
977a236f
Commit
977a236f
authored
Aug 25, 2020
by
qinhaitao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
获取活动信息
parent
693a2219
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
3 deletions
+4
-3
base.service.js
v2.0/dist/service/base.service.js
+1
-1
base.service.js.map
v2.0/dist/service/base.service.js.map
+1
-1
base.service.ts
v2.0/src/service/base.service.ts
+2
-1
No files found.
v2.0/dist/service/base.service.js
View file @
977a236f
...
...
@@ -59,7 +59,7 @@ var BaseService = /** @class */ (function () {
switch
(
_a
.
label
)
{
case
0
:
console
.
log
(
process
.
argv
[
2
],
'process.argv[2]'
);
return
[
4
/*yield*/
,
this
.
activitydao
.
findOne
({
_id
:
activityId
})];
return
[
4
/*yield*/
,
this
.
activitydao
.
findOne
({
_id
:
activityId
,
deleteStatus
:
1
/* NORMAL */
})];
case
1
:
return
[
2
/*return*/
,
_a
.
sent
()];
}
});
...
...
v2.0/dist/service/base.service.js.map
View file @
977a236f
{"version":3,"file":"base.service.js","sourceRoot":"","sources":["../../src/service/base.service.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,8BAAgC;AAChC,4BAA+C;AAE/C;IAGE,qBAAY,OAAgB;QAC1B,IAAI,CAAC,OAAO,GAAG,OAAO,CAAA;QACtB,IAAI,CAAC,WAAW,GAAG,IAAI,aAAO,CAAC,OAAO,EAAE,4BAAuB,CAAC,CAAA;IAClE,CAAC;IACD;;;;OAIG;IACG,iCAAW,GAAjB,UAAkB,UAAkB;;;;;wBAClC,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,iBAAiB,CAAC,CAAA;wBACxC,qBAAM,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,EAAE,GAAG,EAAE,UAAU,EAAE,CAAC,EAAA;4BAA1D,sBAAO,SAAmD,EAAA;;;;KAC3D;IACH,kBAAC;AAAD,CAAC,AAhBD,IAgBC"}
\ No newline at end of file
{"version":3,"file":"base.service.js","sourceRoot":"","sources":["../../src/service/base.service.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,8BAAgC;AAChC,4BAA+C;AAG/C;IAGE,qBAAY,OAAgB;QAC1B,IAAI,CAAC,OAAO,GAAG,OAAO,CAAA;QACtB,IAAI,CAAC,WAAW,GAAG,IAAI,aAAO,CAAC,OAAO,EAAE,4BAAuB,CAAC,CAAA;IAClE,CAAC;IACD;;;;OAIG;IACG,iCAAW,GAAjB,UAAkB,UAAkB;;;;;wBAClC,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,iBAAiB,CAAC,CAAA;wBACxC,qBAAM,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,EAAE,GAAG,EAAE,UAAU,EAAE,YAAY,gBAAwB,EAAE,CAAC,EAAA;4BAAhG,sBAAO,SAAyF,EAAA;;;;KACjG;IACH,kBAAC;AAAD,CAAC,AAhBD,IAgBC"}
\ No newline at end of file
v2.0/src/service/base.service.ts
View file @
977a236f
...
...
@@ -6,6 +6,7 @@
import
{
BaseDao
}
from
'../sdk'
import
{
ACTIVITY_CONFIG_DB_NAME
}
from
'../db'
import
{
ACTIVITY_STATUS
}
from
'../constants'
export
default
class
BaseService
{
context
:
Context
...
...
@@ -21,6 +22,6 @@ export default class BaseService {
*/
async
getBaseInfo
(
activityId
:
string
)
{
console
.
log
(
process
.
argv
[
2
],
'process.argv[2]'
)
return
await
this
.
activitydao
.
findOne
({
_id
:
activityId
})
return
await
this
.
activitydao
.
findOne
({
_id
:
activityId
,
deleteStatus
:
ACTIVITY_STATUS
.
NORMAL
})
}
}
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