...
|
...
|
@@ -20,6 +20,7 @@ class IndexController extends PluginBaseController |
|
|
$post = $data['post'];
|
|
|
if(empty($post['content'])) $this->error('评论不能为空!');
|
|
|
$user_id = cmf_get_current_user_id();
|
|
|
dump($user_id);
|
|
|
$User=new UserModel();
|
|
|
$user=$User->getUserInfo($user_id);
|
|
|
if(empty($user)) $this->error('未登录!');
|
...
|
...
|
|