Commit 7d674b3e authored by qinhaitao's avatar qinhaitao

fix: 🐛 updateVip bug

parent 99c90257
...@@ -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 || {}
// 老用户 // 老用户
// 之前进入活动未关注,现在进入关注,则视为新关注店铺用户 // 之前进入活动未关注,现在进入关注,则视为新关注店铺用户
......
...@@ -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)
? { ? {
......
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