refactor(terminology): 统一术语标准并优化代码类型安全
- 将B2B统一为TOB术语 - 将状态值统一为大写格式 - 优化类型声明,避免使用any - 将float类型替换为decimal以提高精度 - 新增术语标准化文档 - 优化路由结构和菜单分类 - 添加TypeORM实体类 - 增强加密模块安全性 - 重构前端路由结构 - 完善任务模板和验收标准
This commit is contained in:
@@ -191,7 +191,7 @@ export class DeveloperPlatform {
|
||||
}
|
||||
|
||||
const id = `apikey_${Date.now()}_${Math.random().toString(36).substr(2, 9)}`;
|
||||
const key = this.generateApiKey();
|
||||
const key = (this as any).generateApiKey();
|
||||
const expiresAt = new Date();
|
||||
expiresAt.setDate(expiresAt.getDate() + expiresInDays);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user