public function edit_avatar_type() { try { $this->throwMsgCheck('is_post', 'is_login'); $req = req()->_plain(); lib()->load("UserControl"); $uc = new UserControl(); $uc->edit_avatar(login_user(), $req->post('type')); $this->rt_msg['status'] = true; } catch (\Exception $ex) { $this->rt_msg['msg'] = $ex->getMessage(); } }