Commit b3b07c6c authored by nanahira's avatar nanahira

solved

parent 13105d63
......@@ -17,23 +17,23 @@
## 项目经历
{{#projects}}
* {{.name}}
* {{name}}
{{/projects}}
## 论文
{{#theses}}
* {{.name}}
* {{name}}
{{/theses}}
## 专利
{{#patents}}
* {{.name}}
* {{name}}
{{/patents}}
## 竞赛
{{#competitions}}
* {{.name}}
* {{name}}
{{/competitions}}
\ No newline at end of file
......@@ -12,9 +12,12 @@ export class AppController {
try {
data = JSON.parse(dataRaw);
} catch (e) {
res.status(400).end('bad JSON');
res.status(400).end({ message: 'bad JSON' });
return;
}
if (!data || !data.id || !data.name) {
res.status(400).end({ message: 'bad student data' });
}
const pdf = await this.appService.getPdf(data);
res.set({
'Content-Type': 'application/pdf',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment