修复一下问题
This commit is contained in:
parent
7ead4fcc85
commit
0a29464a82
2
.gitignore
vendored
2
.gitignore
vendored
@ -97,3 +97,5 @@ devops-monitor-id_rsa.key
|
|||||||
/claude/
|
/claude/
|
||||||
|
|
||||||
.local-run/
|
.local-run/
|
||||||
|
|
||||||
|
.env
|
||||||
@ -100,7 +100,8 @@ public class UserAuthTypeRestController extends BaseController {
|
|||||||
*/
|
*/
|
||||||
@GetMapping("/delete/account-auth/{userId}")
|
@GetMapping("/delete/account-auth/{userId}")
|
||||||
public void deleteUserAccountLogin(@PathVariable("userId") Long userId) {
|
public void deleteUserAccountLogin(@PathVariable("userId") Long userId) {
|
||||||
userAuthTypeService.deleteUserAccountLogin(userId);
|
// 临时关闭 App 侧按 userId 删除账号密码登录信息,避免普通用户指定他人 userId 触发删除。
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -279,9 +279,17 @@ public class RegisterDeviceClientServiceImpl implements RegisterDeviceClientServ
|
|||||||
// 判断是否为主播:检查用户是否为团队成员
|
// 判断是否为主播:检查用户是否为团队成员
|
||||||
TeamMember teamMember =
|
TeamMember teamMember =
|
||||||
teamMemberService.getByMemberId(otherUserId);
|
teamMemberService.getByMemberId(otherUserId);
|
||||||
if (teamMember != null) {
|
if (teamMember == null) {
|
||||||
return true;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 同设备账号已被封禁的,不再占用该设备的主播/代理名额
|
||||||
|
UserProfile otherProfile = userProfileGateway.getByUserId(otherUserId);
|
||||||
|
if (otherProfile != null && otherProfile.checkAccountArchive()) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
@ -1,7 +1,6 @@
|
|||||||
package com.red.circle.wallet.inner.service.wallet.impl;
|
package com.red.circle.wallet.inner.service.wallet.impl;
|
||||||
|
|
||||||
import com.google.common.collect.Lists;
|
import com.google.common.collect.Lists;
|
||||||
import com.red.circle.common.business.core.enums.OpUserType;
|
|
||||||
import com.red.circle.common.business.core.enums.SysOriginPlatformEnum;
|
import com.red.circle.common.business.core.enums.SysOriginPlatformEnum;
|
||||||
import com.red.circle.component.tencent.cls.request.ClsLogSearchQry;
|
import com.red.circle.component.tencent.cls.request.ClsLogSearchQry;
|
||||||
import com.red.circle.component.tencent.cls.response.ClsLogSearchResult;
|
import com.red.circle.component.tencent.cls.response.ClsLogSearchResult;
|
||||||
@ -113,21 +112,17 @@ public class WalletGoldClientServiceImpl implements WalletGoldClientService {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public WalletReceiptResDTO changeBalanceTest(TestWalletReceiptCmd cmd) {
|
public WalletReceiptResDTO changeBalanceTest(TestWalletReceiptCmd cmd) {
|
||||||
return walletInnerConvertor.toWalletReceiptResDTO(walletGoldGateway.changeBalance(
|
// 临时止血:测试加币接口允许 raw eventType/eventId 入参,线上先直接拒绝写余额。
|
||||||
new WalletReceipt()
|
log.warn("temporary block test gold balance change endpoint, userId={}, eventId={}, type={}",
|
||||||
.setReqTraceId(cmd.getReqTraceId())
|
cmd.getUserId(), cmd.getEventId(), cmd.getReceiptType());
|
||||||
.setReceiptType(cmd.getReceiptType())
|
return temporaryBlockedReceipt(cmd.getUserId());
|
||||||
.setUserId(cmd.getUserId())
|
}
|
||||||
.setSysOrigin(cmd.getSysOrigin())
|
|
||||||
.setEventType(cmd.getEventType())
|
private WalletReceiptResDTO temporaryBlockedReceipt(Long userId) {
|
||||||
.setEventDesc(cmd.getEventDesc())
|
WalletReceiptResDTO res = new WalletReceiptResDTO();
|
||||||
.setEventId(cmd.getEventId())
|
res.setBalance(walletGoldGateway.getBalance(userId));
|
||||||
.setRemark(cmd.getRemark())
|
res.setOpAmount(PennyAmount.ofPenny(0L));
|
||||||
.setOpUserType(OpUserType.APP)
|
return res;
|
||||||
.setAmount(PennyAmount.ofDollar(cmd.getAmount()))
|
|
||||||
.setCloseDelayAsset(cmd.getCloseDelayAsset())
|
|
||||||
.setCreateTime(DateUtils.now())
|
|
||||||
));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user