refactor(apply): 取消新人注册50元奖励相关代码
- 注释掉通过userId更新50元奖励的逻辑 - 注释掉新增新人注册奖励明细的代码 - 删除未使用的addShopDealerCapital接口导入 - 保持代码整洁,避免重复提交错误
This commit is contained in:
0
.workbuddy/memory/MEMORY.md
Normal file
0
.workbuddy/memory/MEMORY.md
Normal file
@@ -9,9 +9,8 @@ import {TenantId} from "@/config/app";
|
|||||||
import {updateUser} from "@/api/system/user";
|
import {updateUser} from "@/api/system/user";
|
||||||
import {User} from "@/api/system/user/model";
|
import {User} from "@/api/system/user/model";
|
||||||
import {getStoredInviteParams, handleInviteRelation} from "@/utils/invite";
|
import {getStoredInviteParams, handleInviteRelation} from "@/utils/invite";
|
||||||
import {addShopDealerUser, updateShopDealerUserByUserId} from "@/api/shop/shopDealerUser";
|
import {addShopDealerUser} from "@/api/shop/shopDealerUser";
|
||||||
import {listUserRole, updateUserRole} from "@/api/system/userRole";
|
import {listUserRole, updateUserRole} from "@/api/system/userRole";
|
||||||
import {addShopDealerCapital} from "@/api/shop/shopDealerCapital";
|
|
||||||
|
|
||||||
// 类型定义
|
// 类型定义
|
||||||
interface ChooseAvatarEvent {
|
interface ChooseAvatarEvent {
|
||||||
@@ -135,7 +134,7 @@ const AddUserAddress = () => {
|
|||||||
console.log('正在提交中,请勿重复点击')
|
console.log('正在提交中,请勿重复点击')
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
setSubmitting(true)
|
setSubmitting(true)
|
||||||
try {
|
try {
|
||||||
// 验证必填字段
|
// 验证必填字段
|
||||||
@@ -211,20 +210,20 @@ const AddUserAddress = () => {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
// 获得50元奖励
|
// 【已取消】获得50元奖励
|
||||||
await updateShopDealerUserByUserId({
|
// await updateShopDealerUserByUserId({
|
||||||
userId: user?.userId,
|
// userId: user?.userId,
|
||||||
money: '50',
|
// money: '50',
|
||||||
})
|
// })
|
||||||
|
|
||||||
// 保存明细
|
// 【已取消】保存明细
|
||||||
await addShopDealerCapital({
|
// await addShopDealerCapital({
|
||||||
userId: user?.userId,
|
// userId: user?.userId,
|
||||||
flowType: 50,
|
// flowType: 50,
|
||||||
money: '50',
|
// money: '50',
|
||||||
toUserId: user?.refereeId,
|
// toUserId: user?.refereeId,
|
||||||
comments: '新人注册奖励'
|
// comments: '新人注册奖励'
|
||||||
})
|
// })
|
||||||
|
|
||||||
Taro.showToast({
|
Taro.showToast({
|
||||||
title: `注册成功`,
|
title: `注册成功`,
|
||||||
|
|||||||
Reference in New Issue
Block a user