diff --git a/crmeb/crmeb/services/upload/storage/Oss.php b/crmeb/crmeb/services/upload/storage/Oss.php index bb95cd386..7c6f9876e 100644 --- a/crmeb/crmeb/services/upload/storage/Oss.php +++ b/crmeb/crmeb/services/upload/storage/Oss.php @@ -238,6 +238,7 @@ class Oss extends BaseUpload if (!$waterConfig['watermark_text']) { throw new ValidateException('请先配置水印文字'); } + $waterConfig['watermark_text_color'] = str_replace('#', '', $waterConfig['watermark_text_color']); $waterPath = $filePath .= '/watermark,text_' . base64_encode($waterConfig['watermark_text']) . ',color_' . $waterConfig['watermark_text_color'] . ',size_' . $waterConfig['watermark_text_size'] . ',g_' . ($this->position[$waterConfig['watermark_position']] ?? 'nw') . ',x_' . $waterConfig['watermark_x'] . ',y_' . $waterConfig['watermark_y']; break; }