switch ($GLOBALS["act_post"]) { case "send": $api_pm->api_send(); //发送 break; case "del": $api_pm->api_del(); //删除 break; case "status": $api_pm->api_status(); //状态 break; case "rev": case "revoke": $api_pm->api_revoke(); //撤回 break; default: switch ($GLOBALS["act_get"]) { case "check": $api_pm->api_check(); //验证是否有新短信 break; case "read": $api_pm->api_read(); //读取 break; case "list": $api_pm->api_list(); //列出