docs(migration): 添加清渊传奇PHP到Vue+Node.js移植计划文档

- 新增 MIGRATION.md 详细记录PHP到Node.js架构迁移方案
- 包含项目背景、现有资产盘点、架构设计、任务清单等完整规划
- 记录后端补全、前端补全、PHP停用、部署运维四个阶段实施计划
- 提供技术决策、数据库说明、进度总览等关键信息
- 更新 .gitignore 添加 *_out.txt build_output.txt 构建输出文件过滤
- 修复 utils.js 路径引用问题确保代码正常运行
This commit is contained in:
艾贤凌
2026-04-24 17:57:06 +08:00
parent d8106b2dd2
commit d676faa704
18 changed files with 23 additions and 105 deletions

View File

@@ -2,7 +2,7 @@ import Router from 'koa-router'
import mysql from '../mysql/index.js'
import * as log4js from '../log4js.js'
import config from '../config/index.js'
import { encryptPassword } from '../utils.js'
import { encryptPassword } from '../utils/utils.js'
const router = new Router()

View File

@@ -3,7 +3,7 @@ import mysql from '../mysql/index.js'
import jwt from 'jsonwebtoken'
import * as log4js from '../log4js.js'
import config from '../config/index.js'
import { time, unixTime, encryptPassword, generateCode, getClientIp, isValidAccount, isValidEmail, getDeviceInfo } from '../utils.js'
import { time, unixTime, encryptPassword, generateCode, getClientIp, isValidAccount, isValidEmail, getDeviceInfo } from '../utils/utils.js'
import { sendCodeMail } from '../mail.js'
const router = new Router()

View File

@@ -1,5 +1,5 @@
import config from '../../config/index.js'
import { getClientIp } from '../../utils.js'
import { getClientIp } from '../../utils/utils.js'
/**
* IP 黑名单过滤中间件

View File

@@ -1,5 +1,5 @@
import * as log4js from '../../log4js.js'
import { getClientIp } from '../../utils.js'
import { getClientIp } from '../../utils/utils.js'
/**
* 简单内存限流中间件(基于滑动窗口计数)

View File

@@ -3,7 +3,7 @@ import mysql from '../mysql/index.js'
import getGameDB from '../mysql/gameDB.js'
import * as log4js from '../log4js.js'
import config from '../config/index.js'
import { time, unixTime, getClientIp } from '../utils.js'
import { time, unixTime, getClientIp } from '../utils/utils.js'
import { readFileSync, existsSync } from 'fs'
import { fileURLToPath } from 'url'
import { dirname, join } from 'path'