|
|
@@ -144,7 +144,6 @@ export class QrCodeService {
|
|
|
throw new Error('二维码不存在')
|
|
|
}
|
|
|
|
|
|
- let scanCount = entity.scanCount
|
|
|
let info = null
|
|
|
let isVisible = true
|
|
|
|
|
|
@@ -160,7 +159,6 @@ export class QrCodeService {
|
|
|
}
|
|
|
|
|
|
if (!isAdmin && info && info.isVisible === false) {
|
|
|
- scanCount = 0
|
|
|
info = null
|
|
|
isVisible = false
|
|
|
} else if (info) {
|
|
|
@@ -187,9 +185,8 @@ export class QrCodeService {
|
|
|
id: entity.id,
|
|
|
qrCode: entity.qrCode,
|
|
|
qrType: entity.qrType,
|
|
|
- ...(isAdmin && { createdAt: entity.createdAt, updatedAt: entity.updatedAt }),
|
|
|
+ ...(isAdmin && { scanCount: entity.scanCount, createdAt: entity.createdAt, updatedAt: entity.updatedAt }),
|
|
|
isActivated: entity.isActivated,
|
|
|
- scanCount,
|
|
|
isVisible,
|
|
|
info
|
|
|
}
|