mirror of
https://github.com/whyour/qinglong.git
synced 2025-05-23 14:56:07 +08:00
修改订阅日志排版
This commit is contained in:
parent
3f29c1aa4e
commit
8b1906c786
|
@ -206,7 +206,7 @@ export default class SubscriptionService {
|
|||
let beforeStr = '';
|
||||
try {
|
||||
if (doc.sub_before) {
|
||||
fs.appendFileSync(absolutePath, `\n## 执行开始前命令... `);
|
||||
fs.appendFileSync(absolutePath, `\n## 执行before命令...\n\n`);
|
||||
beforeStr = await this.promiseExec(doc.sub_before);
|
||||
}
|
||||
} catch (error: any) {
|
||||
|
@ -225,7 +225,7 @@ export default class SubscriptionService {
|
|||
let afterStr = '';
|
||||
try {
|
||||
if (sub.sub_after) {
|
||||
fs.appendFileSync(absolutePath, `\n\n## 执行结束后命令... `);
|
||||
fs.appendFileSync(absolutePath, `\n\n## 执行after命令...\n`);
|
||||
afterStr = await this.promiseExec(sub.sub_after);
|
||||
}
|
||||
} catch (error: any) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user