diff --git a/app/controller/api/Comment.php b/app/controller/api/Comment.php index f861789..d136ea2 100644 --- a/app/controller/api/Comment.php +++ b/app/controller/api/Comment.php @@ -10,6 +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 +57,11 @@ 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", ""),//图片地址 仅图片评论才有