MODEL_LOG::input_ids PHP Method

input_ids() public method

选择 input_ids function.
public input_ids ( ) : void
return void
    function input_ids()
    {
        if (!fn_token("chk")) {
            //令牌
            return array("alert" => "x030206");
        }
        $_arr_logIds = fn_post("log_ids");
        if ($_arr_logIds) {
            foreach ($_arr_logIds as $_key => $_value) {
                $_arr_logIds[$_key] = fn_getSafe($_value, "int", 0);
            }
            $_str_alert = "ok";
        } else {
            $_str_alert = "x030202";
        }
        $this->logIds = array("alert" => $_str_alert, "log_ids" => array_unique($_arr_logIds));
        return $this->logIds;
    }