作者 sgj
1 个管道 的构建 通过 耗费 2 秒

评论显示问题

@@ -25,6 +25,8 @@ class IndexController extends PluginBaseController @@ -25,6 +25,8 @@ class IndexController extends PluginBaseController
25 if(empty($user)) $this->error('未登录!'); 25 if(empty($user)) $this->error('未登录!');
26 $admin = Db::name("comment")->where('user_id', $user['id'])->field("create_time")->order(["create_time" => "DESC"])->find(); 26 $admin = Db::name("comment")->where('user_id', $user['id'])->field("create_time")->order(["create_time" => "DESC"])->find();
27 if(time()-$admin['create_time']<60) $this->error('1分钟内只能留言一次!'); 27 if(time()-$admin['create_time']<60) $this->error('1分钟内只能留言一次!');
  28 + dump($user);
  29 + exit();
28 $post ['user_id']=$user['id']; 30 $post ['user_id']=$user['id'];
29 $post ['full_name']= $user['user_nickname']?$user['user_nickname']:($user['user_login']?$user['user_login']:$user['mobile']); 31 $post ['full_name']= $user['user_nickname']?$user['user_nickname']:($user['user_login']?$user['user_login']:$user['mobile']);
30 if($post ['full_name'] == $user['mobile']) $post ['full_name']=substr_replace($post ['full_name'], '****', 3, 4); 32 if($post ['full_name'] == $user['mobile']) $post ['full_name']=substr_replace($post ['full_name'], '****', 3, 4);