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
7d674b3e
Commit
7d674b3e
authored
Apr 14, 2021
by
qinhaitao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:
🐛
updateVip bug
parent
99c90257
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
user.service.ts
v2.0/src/service/common/user.service.ts
+1
-1
updateVip.ts
v2.0/src/utils/common/update/updateVip.ts
+1
-1
No files found.
v2.0/src/service/common/user.service.ts
View file @
7d674b3e
...
@@ -142,7 +142,7 @@ class UserService extends BaseService {
...
@@ -142,7 +142,7 @@ class UserService extends BaseService {
}
}
const
{
tasks
}
=
activityInfo
const
{
tasks
}
=
activityInfo
const
{
follow
,
member
}
=
tasks
const
{
follow
,
member
}
=
tasks
||
{}
// 老用户
// 老用户
// 之前进入活动未关注,现在进入关注,则视为新关注店铺用户
// 之前进入活动未关注,现在进入关注,则视为新关注店铺用户
...
...
v2.0/src/utils/common/update/updateVip.ts
View file @
7d674b3e
...
@@ -8,7 +8,7 @@ export default async function updateVip(
...
@@ -8,7 +8,7 @@ export default async function updateVip(
):
Promise
<
IPreUpdateQuery
>
{
):
Promise
<
IPreUpdateQuery
>
{
let
{
member
}
=
userInfo
let
{
member
}
=
userInfo
const
memberReWards
=
activityInfo
?.
tasks
?.
member
?.
value
const
memberReWards
=
activityInfo
?.
tasks
?.
member
?.
value
||
0
return
isNewVip
(
userInfo
,
vipInfo
)
return
isNewVip
(
userInfo
,
vipInfo
)
?
{
?
{
...
...
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