} include_once BG_PATH_FUNC . "init.func.php"; //初始化 $arr_set = array("base" => true, "header" => "Content-type: application/json; charset=utf-8", "db" => true, "type" => "ajax"); fn_init($arr_set); include_once BG_PATH_CONTROL . "api/user.class.php"; //载入用户控制器 $api_user = new API_USER(); //初始化用户 switch ($GLOBALS["act_post"]) { case "reg": $api_user->api_reg(); //注册 break; case "refresh_token": $api_user->api_refresh_token(); //刷新访问口令 break; case "login": $api_user->api_login(); //登录 break; case "edit": $api_user->api_edit(); //编辑 break; case "mailbox": $api_user->api_mailbox(); //更换邮箱 break; case "nomail":