public function follow_gallery() { try { $this->throwMsgCheck('is_post', 'is_login', 'is_active'); $this->__lib("FollowManagement"); $fm = new FollowManagement(); $fm->follow_gallery(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(); } }