MODEL_APP::mdl_reset PHP Method

mdl_reset() public method

重置 app key mdl_reset function.
public mdl_reset ( mixed $num_appId ) : void
$num_appId mixed
return void
    function mdl_reset($num_appId)
    {
        $_arr_appData = array("app_key" => fn_rand(64));
        $_num_mysql = $this->obj_db->update(BG_DB_TABLE . "app", $_arr_appData, "app_id=" . $num_appId);
        //更新数据
        if ($_num_mysql > 0) {
            $_str_alert = "y050103";
            //更新成功
        } else {
            return array("alert" => "x050103");
        }
        return array("app_id" => $num_appId, "alert" => $_str_alert);
    }