From 121b714d710cf3c865f4a1b5efe81abec11056d1 Mon Sep 17 00:00:00 2001
From: quanwei <419654421@qq.com>
Date: Sat, 01 Nov 2025 14:36:36 +0800
Subject: [PATCH] 修复名片模板生成失败问题 修复后台名片查看不显示头像和logo问题
---
admin/app/common/service/business/Poster.php | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/admin/app/common/service/business/Poster.php b/admin/app/common/service/business/Poster.php
index 2296aaa..8546466 100644
--- a/admin/app/common/service/business/Poster.php
+++ b/admin/app/common/service/business/Poster.php
@@ -324,11 +324,11 @@
while ($width < ($titleNum * $this->config['address'][0]['fontSize'] + $the_box + $fontX)) {
$titleNum--;
};
- if ($strlen > $titleNum && $titleNum) {
+ if ($strlen > $titleNum && $titleNum>0) {
$strArr = self::mbStrSplit($title, $titleNum);
}
$colorResource=self::colorResource($this->config['address'][0]['color'],$editor);
- if ($strlen > $titleNum && $titleNum) {
+ if ($strlen > $titleNum && $titleNum>0) {
$y = $fontY + 10;
foreach ($strArr as $k => $v) {
if ($k == 0) {
--
Gitblit v1.9.2