function api_check()
{
$this->app_check("get");
if (!isset($this->appAllow["pm"]["check"])) {
$_arr_return = array("alert" => "x050319");
$_arr_logTarget[] = array("app_id" => $this->appRequest["app_id"]);
$_arr_logType = array("pm", "check");
$this->log_do($_arr_logTarget, "app", $_arr_return, $_arr_logType);
$this->obj_api->halt_re($_arr_return);
}
$_arr_userRow = $this->user_check("get");
$_arr_sign = array("act_get" => $GLOBALS["act_get"], $this->userRequest["user_by"] => $this->userRequest["user_str"], "user_access_token" => $this->userRequest["user_access_token"]);
if (!$this->obj_sign->sign_check(array_merge($this->appRequest, $_arr_sign), $this->appRequest["signature"])) {
$_arr_return = array("alert" => "x050403");
$this->obj_api->halt_re($_arr_return);
}
$_arr_search = array("type" => "in", "pm_to" => $_arr_userRow["user_id"], "status" => fn_getSafe(fn_get("status"), "txt", "wait"));
$_num_pmCount = $this->mdl_pm->mdl_count($_arr_search);
$_arr_return = array("pm_count" => $_num_pmCount, "alert" => "y110402");
$this->obj_api->halt_re($_arr_return);
}