change bosszhipin cookie path to storage path

This commit is contained in:
geekgeekrun
2024-03-02 00:28:20 +08:00
parent 49606c115c
commit 6f7cce46e9
3 changed files with 37 additions and 13 deletions
@@ -130,3 +130,12 @@ export const readStorageFile = (fileName) => {
return o
}
export const writeStorageFile = async (fileName, content) => {
const filePath = path.join(storageFilePath, fileName)
const fileContent = JSON.stringify(content)
return fsPromise.writeFile(
filePath,
fileContent
)
}