mirror of
https://wget.la/https://github.com/Wxw-Gu/WechatExplorer
synced 2026-11-30 16:02:58 +08:00
feat: 日报新增模板市场,支持社区模板安装与使用
This commit is contained in:
1 parent
1156362c3c
commit
976aac32c5
35 files changed
+2957
-82
No files matched your search
@@ -334,6 +334,11 @@ const routes: Record<string, RouteHandler> = {
|
||||
if (!request?.report || !request?.metadata) {
|
||||
return sendError(res, 400, '请求体需包含 report 和 metadata 字段')
|
||||
}
|
||||
if (request.templateRef !== undefined) {
|
||||
return sendError(res, 400, 'HTTP API 暂不支持外部日报模板,请使用内置 templateId', {
|
||||
code: 'external_template_unsupported'
|
||||
})
|
||||
}
|
||||
const result = await exportGroupReport(request)
|
||||
sendJson(res, result.success ? 200 : 500, result)
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user