master
yin5th 2021-12-22 11:14:01 +08:00
parent 87fbb68081
commit 2bc6f4ebf8
1 changed files with 4 additions and 3 deletions

View File

@ -10,7 +10,7 @@ use app\validate\Comment as VComment;
use think\Exception;
use think\exception\ValidateException;
use think\facade\Config;
use think\facade\Log;
/**
* 评论相关
*
@ -56,9 +56,10 @@ class Comment extends Base
if(strtotime($account->blank_time) >time()){
throw new RepositoryException('用户被加入黑名单,暂时不能评论,请在' .$account->blank_time . "后评论");
}
$comment = input("comment/a", [],null);
$comment =urldecode(json_encode($comment));
$param = [
"comment" => input("comment/s", "",null),//评论内容 图片类型放入地址 语音类型放置语音文件地址
"comment" => $comment,//评论内容 图片类型放入地址 语音类型放置语音文件地址
"user_code" => $account['user_code'],
"create_time" => date("Y-m-d H:i:s"),
//"url" => input("url/s", ""),//图片地址 仅图片评论才有