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
ab4044c2
Commit
ab4044c2
authored
Jan 11, 2021
by
qinhaitao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 会员,关注任务
parent
5c9d93e1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
user.service.ts
v2.0/src/service/common/user.service.ts
+2
-2
No files found.
v2.0/src/service/common/user.service.ts
View file @
ab4044c2
...
...
@@ -151,7 +151,7 @@ class UserService extends BaseService {
if
(
!
followBefore
&&
followNow
&&
!
userInfo
.
follow
.
newFollow
)
{
projection
.
$set
.
follow
=
setNewFollowUserData
(
userInfo
.
follow
)
projection
.
$push
[
`taskInfo.
${
today
}
.follow`
]
=
{
createTime
:
Date
.
now
()
}
projection
.
$inc
[
`remainTimes.follow`
]
=
follow
.
value
follow
?.
value
&&
(
projection
.
$inc
[
`remainTimes.follow`
]
=
follow
.
value
)
}
// 之前进入活动非会员,现在进入会员,则视为新会员用户
...
...
@@ -159,7 +159,7 @@ class UserService extends BaseService {
if
(
newVip
)
{
projection
.
$set
.
member
=
setNewVipUserData
(
userInfo
.
member
)
projection
.
$push
[
`taskInfo.
${
today
}
.member`
]
=
{
createTime
:
Date
.
now
()
}
projection
.
$inc
[
`remainTimes.member`
]
=
member
.
value
member
?.
value
&&
(
projection
.
$inc
[
`remainTimes.member`
]
=
member
.
value
)
}
projection
=
merge
({},
projection
,
updateUserWhenLogin
(
this
.
context
,
activityInfo
,
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