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