Commit 0050407a37e4150e4e5bcef5435fe6315832beea

Authored by pengye
1 parent 22d7903b

no message

@@ -26,6 +26,12 @@ class Comment extends Common @@ -26,6 +26,12 @@ class Comment extends Common
26 public function addcommit(){ 26 public function addcommit(){
27 if(Request::isAjax()){ 27 if(Request::isAjax()){
28 $data = Request::except('file'); 28 $data = Request::except('file');
  29 + $data['pid'] = 0;
  30 + $data['author'] = $data['author_openid']?'':'小周';
  31 + $data['identity'] = 1;
  32 + $data['sex'] = 1;
  33 + $data['types'] = 1;
  34 + $data['status'] = 1;
29 return $data; 35 return $data;
30 return $result = ['code'=>1,'msg'=>'评论成功!','data'=>1,'rel'=>1];# 36 return $result = ['code'=>1,'msg'=>'评论成功!','data'=>1,'rel'=>1];#
31 } 37 }
@@ -38,12 +44,6 @@ class Comment extends Common @@ -38,12 +44,6 @@ class Comment extends Common
38 public function agent(){ 44 public function agent(){
39 if(Request::isAjax()){ 45 if(Request::isAjax()){
40 $data = Request::except('file'); 46 $data = Request::except('file');
41 - $data['pid'] = 0;  
42 - $data['author'] = $data['author_openid']?'':'小周';  
43 - $data['identity'] = 1;  
44 - $data['sex'] = 1;  
45 - $data['types'] = 1;  
46 - $data['status'] = 1;  
47 return $data; 47 return $data;
48 $key= input('post.key') ? input('post.key') : ""; 48 $key= input('post.key') ? input('post.key') : "";
49 49