查看错误

This commit is contained in:
2025-10-14 12:03:04 +08:00
parent 2eaa7360e9
commit a3a8d582e5
3 changed files with 3 additions and 3 deletions

View File

@@ -100,7 +100,7 @@ class Redpacket extends Model
'start_time' => $startTime,
'end_time' => $endTime,
'createtime' => time(),
'remark' => !empty($data['remark']) ? $data['remark'] : '大吉大利,红包拿来啦!'
'remark' => (!empty($data['remark']) && trim($data['remark']) !== '') ? trim($data['remark']) : '大吉大利,红包拿来啦!'
];
$redpacketId = $this->insertGetId($redpacketData);