Skip to content

Commit

Permalink
feat: update config
Browse files Browse the repository at this point in the history
  • Loading branch information
xiangsx committed Sep 4, 2024
1 parent d85cda2 commit c86120a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions utils/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ interface ConfigData {
};
cdn: {
url: string;
cf: string;
};
msg_saver?: {
enable: boolean;
Expand Down Expand Up @@ -411,6 +412,7 @@ class BaseConfig {
},
cdn: {
url: '',
cf: '',
},
redis: {
host: '',
Expand Down
2 changes: 1 addition & 1 deletion utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1081,7 +1081,7 @@ export async function downloadAndUploadCDN(url: string): Promise<string> {
});
}
const res: { data: { data: { url: string } } } = await axios.post(
'https://file-tran.davdu2479.workers.dev',
Config.config.global.cdn.cf,
{
fileUrl: url,
},
Expand Down

0 comments on commit c86120a

Please sign in to comment.