update m2pool 注销功能删除api,挖矿账户等功能测试通过
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package com.m2pool.system.service.impl;
|
||||
|
||||
import com.m2pool.common.core.Result.R;
|
||||
import com.m2pool.common.core.constant.SecurityConstants;
|
||||
import com.m2pool.common.core.constant.UserConstants;
|
||||
import com.m2pool.common.core.exception.ServiceException;
|
||||
import com.m2pool.common.core.utils.GoogleAuthenticator;
|
||||
@@ -453,8 +454,9 @@ public class SysUserServiceImpl implements SysUserService {
|
||||
@Override
|
||||
@Transactional
|
||||
public boolean closeAccount(SysUser sysUser) {
|
||||
System.out.println("用户邮箱2:"+sysUser.getUserName());
|
||||
//删除用户相关信息
|
||||
R<Boolean> booleanR = remotePoolService.deleteUserDataAndPutTemporaryTable();
|
||||
R<Boolean> booleanR = remotePoolService.deleteUserDataAndPutTemporaryTable(sysUser,SecurityConstants.INNER);
|
||||
if (R.FAIL == booleanR.getCode()){
|
||||
throw new ServiceException("服务器请求失败请稍后再试");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user