|
|
@ -576,6 +576,9 @@ export class AuthUserService { |
|
|
|
|
|
|
|
|
|
|
|
// DB 更新账户
|
|
|
|
// DB 更新账户
|
|
|
|
private async updateUser(id: string, updateAuthUserDto: UpdateAuthUserDto, guardInfo: GuardInfo) { |
|
|
|
private async updateUser(id: string, updateAuthUserDto: UpdateAuthUserDto, guardInfo: GuardInfo) { |
|
|
|
|
|
|
|
if (id == updateAuthUserDto.pid) { |
|
|
|
|
|
|
|
throw new HttpException('数据成环,无法设置!', HttpStatus.BAD_REQUEST); |
|
|
|
|
|
|
|
} |
|
|
|
const user = await this.mysqlService.db |
|
|
|
const user = await this.mysqlService.db |
|
|
|
.select({ id: pacAuthUser.userId, pid: pacAuthUser.pid }) |
|
|
|
.select({ id: pacAuthUser.userId, pid: pacAuthUser.pid }) |
|
|
|
.from(pacAuthUser) |
|
|
|
.from(pacAuthUser) |
|
|
|