This commit is contained in:
azw 2023-09-03 09:08:07 +08:00
parent cc6e1e0ed1
commit 0ca1cb8d08
2 changed files with 16 additions and 2 deletions

View File

@ -1,4 +1,4 @@
/**
/**
* @api {GET} AA开发指南 AA开发指南
* @apiPermission none
* @apiGroup AA开发指南

View File

@ -5,7 +5,7 @@ const assert = require('assert');
class MyDoc {
constructor() {
this.workDir = '.';
this.workDir = './';
}
async init() {
@ -13,6 +13,20 @@ class MyDoc {
}
async convert() {
this.env = fs.readFileSync(`${this.workDir}env.json`, 'utf8');
let data = `
<?php5
class Doc
{
`;
if (fs.existsSync(`${this.workDir}README.php`)) {
data += fs.readFileSync(`${this.workDir}README.php`, 'utf8');
}
const files = fs.readdirSync('./', {encoding:'utf8', withFileTypes:true});
files.forEach((item) => {
console.log(item);
});
}
}