Merge branch 'dev' of gitea.51mars.com:Oak-Team/oak-general-business into dev

This commit is contained in:
Xu Chang 2025-05-04 19:29:22 +08:00
commit 8a9976a090
7 changed files with 9 additions and 8 deletions

View File

@ -40,7 +40,7 @@ export class WechatSdk extends Feature {
$in: messageTypes,
},
},
}, { allowMiss: true });
});
if (mttIds.length < messageTypes.length) {
mttIds = (await this.cache.refresh('messageTypeTemplate', {
data: {

View File

@ -69,7 +69,7 @@ const triggers = [
}, {});
if (count === 0) {
const uploader = getCosBackend(origin);
const application2 = context.getApplication() || application;
const application2 = context.getApplication(true) || application;
await uploader.removeFile(application2, extraFile);
}
}

View File

@ -44,7 +44,7 @@ class WechatSdk extends Feature_1.Feature {
$in: messageTypes,
},
},
}, { allowMiss: true });
});
if (mttIds.length < messageTypes.length) {
mttIds = (await this.cache.refresh('messageTypeTemplate', {
data: {

View File

@ -71,7 +71,7 @@ const triggers = [
}, {});
if (count === 0) {
const uploader = (0, index_backend_1.getCosBackend)(origin);
const application2 = context.getApplication() || application;
const application2 = context.getApplication(true) || application;
await uploader.removeFile(application2, extraFile);
}
}

View File

@ -91,6 +91,7 @@ export default function Render(
clearContentTip,
} = methods;
const {
oakId,
oakFullpath,
id,
content,
@ -207,7 +208,7 @@ export default function Render(
);
const extraFile = {
entity: "article",
entityId: articleId,
entityId: oakId || articleId,
origin: origin,
type: "image",
tag1: "source",
@ -261,7 +262,7 @@ export default function Render(
);
const extraFile = {
entity: "article",
entityId: articleId,
entityId: oakId || articleId,
origin: origin,
type: "video",
tag1: "source",

View File

@ -50,7 +50,7 @@ export class WechatSdk<ED extends EntityDict> extends Feature {
$in: messageTypes,
},
},
}, { allowMiss: true });
});
if (mttIds.length < messageTypes.length) {
mttIds = (await this.cache.refresh('messageTypeTemplate', {
data: {

View File

@ -79,7 +79,7 @@ const triggers: Trigger<EntityDict, 'extraFile', BRC<EntityDict>>[] = [
}, {});
if (count === 0) {
const uploader = getCosBackend(origin!);
const application2 = context.getApplication() || application;
const application2 = context.getApplication(true) || application;
await uploader.removeFile(
application2 as EntityDict['application']['Schema'],
extraFile as EntityDict['extraFile']['OpSchema']