正在显示
1 个修改的文件
包含
2 行增加
和
0 行删除
@@ -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); |
-
请 注册 或 登录 后发表评论