修正留言报错

This commit is contained in:
muzi_ys 2022-07-31 23:06:02 +08:00
parent 9fddadf1ae
commit 2e8bd2d039
2 changed files with 3 additions and 2 deletions

View File

@ -105,6 +105,7 @@ class Index extends Base
['content', ''],
]);
$data['create_time'] = time();
$data['reply_content'] = '';
$messageFormValidate = new MessageFormValidate();
if (!$messageFormValidate->check($data)) {
$this->error($messageFormValidate->getError());

View File

@ -74,7 +74,7 @@
</div>
<div class="comment_userinput">
<div class="comment-form-author">
<input id="author" name="name" placeholder="昵称(*)" type="text" value="" size="30"
<input id="author" name="author" placeholder="昵称(*)" type="text" value="" size="30"
class="required">
</div>
<div class="comment-form-email">
@ -82,7 +82,7 @@
class="required">
</div>
<div class="comment-form-url">
<input id="tel" placeholder="网址(*)" name="tel" type="text" value="" size="30">
<input id="tel" placeholder="电话(*)" name="tel" type="text" value="" size="30">
</div>
</div>
<div style="display: none" class="comment-form-cookies-consent">