fix: 修复 BangDream 动态引用生产路径
This commit is contained in:
parent
21d9b98701
commit
0273493ab4
@ -268,7 +268,7 @@ export class EventDataRepository {
|
|||||||
if (rewardId === undefined) return undefined;
|
if (rewardId === undefined) return undefined;
|
||||||
|
|
||||||
const { bangDreamMainDataRepository } = await import(
|
const { bangDreamMainDataRepository } = await import(
|
||||||
'@/qqbot/plugins/bangDream/shared/main-data.repository'
|
'../shared/main-data.repository'
|
||||||
);
|
);
|
||||||
const allDeco = bangDreamMainDataRepository.getCollection<
|
const allDeco = bangDreamMainDataRepository.getCollection<
|
||||||
Record<string, any>
|
Record<string, any>
|
||||||
|
|||||||
@ -34,7 +34,7 @@ async function defaultAssetClient(
|
|||||||
options: BangDreamAssetRequestOptions = {},
|
options: BangDreamAssetRequestOptions = {},
|
||||||
): Promise<Buffer> {
|
): Promise<Buffer> {
|
||||||
const { downloadFile, downloadFileCache } = await import(
|
const { downloadFile, downloadFileCache } = await import(
|
||||||
'@/qqbot/plugins/bangDream/provider/asset-cache.client'
|
'./asset-cache.client'
|
||||||
);
|
);
|
||||||
const ignoreError = options.ignoreError ?? true;
|
const ignoreError = options.ignoreError ?? true;
|
||||||
if (options.memoryCache === false || options.overwrite) {
|
if (options.memoryCache === false || options.overwrite) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user