chore: migrate to KT financial system

This commit is contained in:
woshiqp465
2025-11-04 16:06:44 +08:00
parent 2c0505b73d
commit f4cd0a5f22
289 changed files with 7362 additions and 41458 deletions

View File

@@ -0,0 +1,15 @@
import { mkdirSync } from 'node:fs';
import { join } from 'pathe';
const MEDIA_ROOT = join(process.cwd(), 'storage', 'telegram-media');
mkdirSync(MEDIA_ROOT, { recursive: true });
export function getMediaRoot() {
return MEDIA_ROOT;
}
export function resolveMediaAbsolutePath(relativePath: string) {
return join(MEDIA_ROOT, relativePath);
}