加上 super
This commit is contained in:
parent
8546164412
commit
397613b639
|
|
@ -27,6 +27,7 @@ function getApplication(params, context) {
|
|||
platformId: 1,
|
||||
style: 1,
|
||||
folder: 1,
|
||||
super: 1,
|
||||
platform: {
|
||||
id: 1,
|
||||
config: 1,
|
||||
|
|
|
|||
|
|
@ -45,6 +45,7 @@ var BackendRuntimeContext = /** @class */ (function (_super) {
|
|||
platformId: 1,
|
||||
style: 1,
|
||||
folder: 1,
|
||||
super: 1,
|
||||
platform: {
|
||||
id: 1,
|
||||
config: 1,
|
||||
|
|
|
|||
|
|
@ -18,6 +18,7 @@ var projection = {
|
|||
platformId: 1,
|
||||
style: 1,
|
||||
folder: 1,
|
||||
super: 1,
|
||||
platform: {
|
||||
id: 1,
|
||||
config: 1,
|
||||
|
|
|
|||
|
|
@ -34,6 +34,7 @@ export async function getApplication<
|
|||
platformId: 1,
|
||||
style: 1,
|
||||
folder: 1,
|
||||
super: 1,
|
||||
platform: {
|
||||
id: 1,
|
||||
config: 1,
|
||||
|
|
|
|||
|
|
@ -22,35 +22,40 @@ export class BackendRuntimeContext<ED extends EntityDict> extends AsyncContext<E
|
|||
try {
|
||||
const { a: appId, t: tokenValue } = data;
|
||||
if (appId) {
|
||||
const result = await this.select('application', {
|
||||
data: {
|
||||
id: 1,
|
||||
name: 1,
|
||||
config: 1,
|
||||
type: 1,
|
||||
systemId: 1,
|
||||
style: 1,
|
||||
system: {
|
||||
const result = await this.select(
|
||||
'application',
|
||||
{
|
||||
data: {
|
||||
id: 1,
|
||||
name: 1,
|
||||
config: 1,
|
||||
platformId: 1,
|
||||
type: 1,
|
||||
systemId: 1,
|
||||
style: 1,
|
||||
folder: 1,
|
||||
platform: {
|
||||
system: {
|
||||
id: 1,
|
||||
name: 1,
|
||||
config: 1,
|
||||
platformId: 1,
|
||||
style: 1,
|
||||
folder: 1,
|
||||
super: 1,
|
||||
platform: {
|
||||
id: 1,
|
||||
config: 1,
|
||||
style: 1,
|
||||
},
|
||||
},
|
||||
},
|
||||
filter: {
|
||||
id: appId,
|
||||
},
|
||||
},
|
||||
filter: {
|
||||
id: appId,
|
||||
},
|
||||
}, {
|
||||
dontCollect: true,
|
||||
blockTrigger: true,
|
||||
});
|
||||
{
|
||||
dontCollect: true,
|
||||
blockTrigger: true,
|
||||
}
|
||||
);
|
||||
assert(result.length > 0, `构建BackendRuntimeContext对应appId「${appId}」找不到application`);
|
||||
this.application = result[0];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -24,6 +24,7 @@ const projection: EntityDict['application']['Selection']['data'] = {
|
|||
platformId: 1,
|
||||
style: 1,
|
||||
folder: 1,
|
||||
super: 1,
|
||||
platform: {
|
||||
id: 1,
|
||||
config: 1,
|
||||
|
|
|
|||
Loading…
Reference in New Issue