feat(edit): 定价试算开发、SKU 样式功能修改
This commit is contained in:
@@ -58,6 +58,11 @@ export async function createApplication() {
|
||||
});
|
||||
// Helmet、body 限制、请求 ID 与全局错误过滤器必须在业务路由前注册。
|
||||
app.use(helmet({ contentSecurityPolicy: false }));
|
||||
// 批量佣金文件可达 2 MiB,专用入口预留元数据空间,其他 API 保留原限制。
|
||||
app.useBodyParser('json', {
|
||||
limit: 3 * 1024 * 1024,
|
||||
type: (req) => (req as Request).path.startsWith('/api/system/pricing/commissions') && Boolean((req as Request).is('application/json')),
|
||||
});
|
||||
app.useBodyParser('json', { limit: config.API_BODY_LIMIT_BYTES });
|
||||
app.useBodyParser('urlencoded', {
|
||||
limit: config.API_BODY_LIMIT_BYTES,
|
||||
|
||||
Reference in New Issue
Block a user