|
...
|
...
|
@@ -26,6 +26,12 @@ class Comment extends Common |
|
|
|
public function addcommit(){
|
|
|
|
if(Request::isAjax()){
|
|
|
|
$data = Request::except('file');
|
|
|
|
$data['pid'] = 0;
|
|
|
|
$data['author'] = $data['author_openid']?'':'小周';
|
|
|
|
$data['identity'] = 1;
|
|
|
|
$data['sex'] = 1;
|
|
|
|
$data['types'] = 1;
|
|
|
|
$data['status'] = 1;
|
|
|
|
return $data;
|
|
|
|
return $result = ['code'=>1,'msg'=>'评论成功!','data'=>1,'rel'=>1];#
|
|
|
|
}
|
|
...
|
...
|
@@ -38,12 +44,6 @@ class Comment extends Common |
|
|
|
public function agent(){
|
|
|
|
if(Request::isAjax()){
|
|
|
|
$data = Request::except('file');
|
|
|
|
$data['pid'] = 0;
|
|
|
|
$data['author'] = $data['author_openid']?'':'小周';
|
|
|
|
$data['identity'] = 1;
|
|
|
|
$data['sex'] = 1;
|
|
|
|
$data['types'] = 1;
|
|
|
|
$data['status'] = 1;
|
|
|
|
return $data;
|
|
|
|
$key= input('post.key') ? input('post.key') : "";
|
|
|
|
|
...
|
...
|
|