|
@@ -26,6 +26,9 @@ export async function addWatermark(
|
|
colorMap: any = {},
|
|
colorMap: any = {},
|
|
onlyUsePdf = false
|
|
onlyUsePdf = false
|
|
): Promise<boolean | string> {
|
|
): Promise<boolean | string> {
|
|
|
|
+ const canShowDouble = store.env.user.doubleTrack;
|
|
|
|
+ console.log("双评是否展示的配置为:", canShowDouble);
|
|
|
|
+
|
|
const file = path.join(...filePath);
|
|
const file = path.join(...filePath);
|
|
if (
|
|
if (
|
|
index !== 1 &&
|
|
index !== 1 &&
|
|
@@ -252,7 +255,7 @@ export async function addWatermark(
|
|
|
|
|
|
for (let i = 0; i < tags.length; i++) {
|
|
for (let i = 0; i < tags.length; i++) {
|
|
const tag = tags[i];
|
|
const tag = tags[i];
|
|
- if (tag.content != undefined && !tag.hide) {
|
|
|
|
|
|
+ if (tag.content != undefined && (!tag.hide || canShowDouble)) {
|
|
let top = tag.top;
|
|
let top = tag.top;
|
|
imgData
|
|
imgData
|
|
.font(fontFile, fontSize)
|
|
.font(fontFile, fontSize)
|