fix: 修正缩进
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Failing after 23s
CI/CD Pipeline / Integration Tests (pull_request) Failing after 1m16s
CI/CD Pipeline / Production Browser E2E (pull_request) Failing after 1540h57m7s
CI/CD Pipeline / Staging API Integration Tests (pull_request) Failing after 1540h57m9s
CI/CD Pipeline / Staging E2E Tests (pull_request) Failing after 1540h57m9s
CI/CD Pipeline / Build Production Runtime Images (pull_request) Failing after 1540h57m11s
CI/CD Pipeline / Build & Push Staging (Watchtower auto-deploy) (pull_request) Failing after 1540h57m11s
CI/CD Pipeline / Unit Tests (pull_request) Has been skipped
CI/CD Pipeline / Deploy Production (pull_request) Failing after 1541h28m46s
CI/CD Pipeline / Frontend Lint (pull_request) Has been skipped
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Failing after 23s
CI/CD Pipeline / Integration Tests (pull_request) Failing after 1m16s
CI/CD Pipeline / Production Browser E2E (pull_request) Failing after 1540h57m7s
CI/CD Pipeline / Staging API Integration Tests (pull_request) Failing after 1540h57m9s
CI/CD Pipeline / Staging E2E Tests (pull_request) Failing after 1540h57m9s
CI/CD Pipeline / Build Production Runtime Images (pull_request) Failing after 1540h57m11s
CI/CD Pipeline / Build & Push Staging (Watchtower auto-deploy) (pull_request) Failing after 1540h57m11s
CI/CD Pipeline / Unit Tests (pull_request) Has been skipped
CI/CD Pipeline / Deploy Production (pull_request) Failing after 1541h28m46s
CI/CD Pipeline / Frontend Lint (pull_request) Has been skipped
This commit is contained in:
@@ -121,7 +121,7 @@ class WatermarkConfig:
|
||||
if not self.image_path:
|
||||
return False, "图片水印缺少图片路径"
|
||||
if not (0.01 <= self.scale <= 1.0):
|
||||
return False, "缩放比例必须在 0.01-1.0 之间"
|
||||
return False, "缩放比例必须在 0.01-1.0 之间"
|
||||
elif self.mode == "text":
|
||||
if not self.text:
|
||||
return False, "文字水印缺少文字内容"
|
||||
|
||||
Reference in New Issue
Block a user