public function gallery_remove_tag() { try { $this->throwMsgCheck('is_post', 'is_login', 'is_active'); lib()->load('Gallery'); $g = new Gallery(); $req = req()->_plain(); $g->remove_tag($req->post('id'), $req->post('tag'), login_user()->getId()); $this->rt_msg['status'] = true; } catch (\Exception $ex) { $this->rt_msg['msg'] = $ex->getMessage(); $this->rt_msg['code'] = $ex->getCode(); } }