Commit a253b66e by 蒋勇

d

parent ed80e855
...@@ -26,7 +26,8 @@ class APIBase extends DocBase { ...@@ -26,7 +26,8 @@ class APIBase extends DocBase {
"auth.getAccessKey", "auth.getAccessKey",
"meta.getBaseComp", "meta.getBaseComp",
"meta.doc", "meta.doc",
"meta.clearAllCache" "meta.clearAllCache",
"meta.upline",
]; ];
var x = lst.indexOf(fullname); var x = lst.indexOf(fullname);
return x >= 0; return x >= 0;
......
...@@ -8,12 +8,17 @@ class BaseCompAPI extends APIBase { ...@@ -8,12 +8,17 @@ class BaseCompAPI extends APIBase {
super(); super();
this.cachsearchesSve = system.getObject("service.common.cachsearchesSve"); this.cachsearchesSve = system.getObject("service.common.cachsearchesSve");
} }
async upline(pobj, gobj, req){
console.log(JSON.stringify(pobj));
}
async clearAllCache(pobj, gobj, req) { async clearAllCache(pobj, gobj, req) {
return await this.cachsearchesSve.clearAllCache(pobj); return await this.cachsearchesSve.clearAllCache(pobj);
} }
async getBaseComp() { async getBaseComp() {
if (cacheBaseComp) { if (cacheBaseComp) {
return cacheBaseComp; return system.getResult(cacheBaseComp);
} }
var vuePath = settings.basepath + "/app/front/vues/base"; var vuePath = settings.basepath + "/app/front/vues/base";
var baseComps = []; var baseComps = [];
...@@ -30,8 +35,8 @@ class BaseCompAPI extends APIBase { ...@@ -30,8 +35,8 @@ class BaseCompAPI extends APIBase {
baseComps.push(comp); baseComps.push(comp);
}); });
} }
// cacheBaseComp = escape(JSON.stringify(baseComps)); cacheBaseComp = { basecom: baseComps };
return system.getResult({ basecom: baseComps }); return system.getResult(cacheBaseComp);
} }
exam() { 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