Exemplo n.º 1
0
 public function mutual()
 {
     $this->theme->setTitle("互相关注");
     $this->theme->setBreadcrumb("互相关注");
     $this->__lib("FollowManagement");
     $fm = new FollowManagement();
     $fm->setPager(req()->get('page'), 20);
     $this->__view("User/header.php");
     $this->__view("Follow/mutual.php", ['list' => $fm->getMutualFollow(login_user()->getId()), 'count' => $fm->getCount()]);
     $this->__view("User/footer.php");
 }
Exemplo n.º 2
0
 public function follow_gallery_cancel()
 {
     try {
         $this->throwMsgCheck('is_post', 'is_login', 'is_active');
         $this->__lib("FollowManagement");
         $fm = new FollowManagement();
         $fm->follow_gallery_cancel(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();
     }
 }