Created
April 27, 2025 06:58
-
-
Save troilus/38117b6f8420c75b9b5640953a526696 to your computer and use it in GitHub Desktop.
4dlp
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const version = 'V1.0.1'; | |
let obj = JSON.parse($response.body); | |
const previewSwitchPath = obj?.Response?.body?.["online-preview"]; | |
const watermarkPath = obj?.Response?.body?.["water-mark"]; | |
if (previewSwitchPath?.["online-preview-switch"] === "1") { | |
previewSwitchPath["online-preview-switch"] = "0"; | |
} | |
$done({ body: JSON.stringify(obj) }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment