Commit a253b66e by 蒋勇

d

parent ed80e855
......@@ -26,7 +26,8 @@ class APIBase extends DocBase {
"auth.getAccessKey",
"meta.getBaseComp",
"meta.doc",
"meta.clearAllCache"
"meta.clearAllCache",
"meta.upline",
];
var x = lst.indexOf(fullname);
return x >= 0;
......
......@@ -8,12 +8,17 @@ class BaseCompAPI extends APIBase {
super();
this.cachsearchesSve = system.getObject("service.common.cachsearchesSve");
}
async upline(pobj, gobj, req){
console.log(JSON.stringify(pobj));
}
async clearAllCache(pobj, gobj, req) {
return await this.cachsearchesSve.clearAllCache(pobj);
}
async getBaseComp() {
if (cacheBaseComp) {
return cacheBaseComp;
return system.getResult(cacheBaseComp);
}
var vuePath = settings.basepath + "/app/front/vues/base";
var baseComps = [];
......@@ -30,8 +35,8 @@ class BaseCompAPI extends APIBase {
baseComps.push(comp);
});
}
// cacheBaseComp = escape(JSON.stringify(baseComps));
return system.getResult({ basecom: baseComps });
cacheBaseComp = { basecom: baseComps };
return system.getResult(cacheBaseComp);
}
exam() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment