|
|
|
@ -581,6 +581,7 @@ public class UserInfoService {
|
|
|
|
|
public void addUserBank(String token, UserBankAddDto userBankAddDto) {
|
|
|
|
|
UserBank userBank = new UserBank();
|
|
|
|
|
BeanUtils.copyProperties(userBankAddDto, userBank);
|
|
|
|
|
userBank.setId(String.valueOf(idWorker.nextId()));
|
|
|
|
|
|
|
|
|
|
UserLoginDto user = jwtUtil.getUserLoginDto(token);
|
|
|
|
|
if (user != null) {
|
|
|
|
@ -661,6 +662,7 @@ public class UserInfoService {
|
|
|
|
|
|
|
|
|
|
UserLoginDto user = jwtUtil.getUserLoginDto(token);
|
|
|
|
|
Withdraw withdraw = Withdraw.builder()
|
|
|
|
|
.id(String.valueOf(idWorker.nextId()))
|
|
|
|
|
.userId(user.getUserId())
|
|
|
|
|
.createUser(user.getUserId())
|
|
|
|
|
.amount(amount)
|
|
|
|
@ -679,7 +681,6 @@ public class UserInfoService {
|
|
|
|
|
*/
|
|
|
|
|
public PageResult<Withdraw> withdrawPageResult(String token, Integer page, Integer size) {
|
|
|
|
|
Pageable pageable = PageRequest.of(page - 1, size);
|
|
|
|
|
UserBank userBank = getUserBank(token);
|
|
|
|
|
UserLoginDto user = jwtUtil.getUserLoginDto(token);
|
|
|
|
|
if (user == null) {
|
|
|
|
|
// 用户校验失败,请重新登录
|
|
|
|
|