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