|
|
@@ -184,6 +184,11 @@ export class QrCodeService {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ const bindRecord = await this.userQrCodeRepository.findOne({
|
|
|
+ where: { qrCodeId: entity.id, isDeleted: false }
|
|
|
+ })
|
|
|
+ const isBind = !!bindRecord
|
|
|
+
|
|
|
return {
|
|
|
id: entity.id,
|
|
|
qrCode: entity.qrCode,
|
|
|
@@ -197,6 +202,7 @@ export class QrCodeService {
|
|
|
}),
|
|
|
isActivated: entity.isActivated,
|
|
|
isVisible,
|
|
|
+ isBind,
|
|
|
info
|
|
|
}
|
|
|
}
|