Esempio n. 1
0
 public function feed()
 {
     $this->theme->setTitle("我的动态");
     $this->theme->setBreadcrumb("我的动态");
     $this->__lib("FeedManagement");
     $fm = new FeedManagement();
     $fm->setPager(req()->get('page'), 10);
     $list = $fm->getList(login_user()->getId());
     $count = $fm->getCount();
     $this->__view("User/header.php");
     $this->__view("Follow/feed.php", ['list' => $list, 'count' => $count]);
     $this->__view("User/footer.php");
 }
Esempio n. 2
0
 public function share_delete()
 {
     try {
         $this->throwMsgCheck('is_post', 'is_login');
         $this->__lib('FeedManagement');
         $fm = new FeedManagement();
         $fm->delete(req()->post('id'), login_user()->getId());
         $this->rt_msg['status'] = true;
     } catch (\Exception $ex) {
         $this->rt_msg['msg'] = $ex->getMessage();
         $this->rt_msg['code'] = $ex->getCode();
     }
 }