Merge branch 'dev' of gitea.51mars.com:Oak-Team/oak-general-business into dev
This commit is contained in:
commit
8a9976a090
|
|
@ -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: {
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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: {
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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: {
|
||||
|
|
|
|||
|
|
@ -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']
|
||||
|
|
|
|||
Loading…
Reference in New Issue