Commit a00bf12b by zhaoxiqing

gsb

parent e9407975
...@@ -13,6 +13,7 @@ class ApiAccessKeyCache extends CacheBase{ ...@@ -13,6 +13,7 @@ class ApiAccessKeyCache extends CacheBase{
return "g_accesskey_"; return "g_accesskey_";
} }
async buildCacheVal(cachekey,inputkey,val,ex,...items){ async buildCacheVal(cachekey,inputkey,val,ex,...items){
try {
var acckapp=await this.restS.execPost({appkey:settings.appKey,secret:settings.secret},settings.paasUrl()+"api/auth/accessAuth/getAccessKey"); var acckapp=await this.restS.execPost({appkey:settings.appKey,secret:settings.secret},settings.paasUrl()+"api/auth/accessAuth/getAccessKey");
var s=acckapp.stdout; var s=acckapp.stdout;
if(s){ if(s){
...@@ -21,6 +22,10 @@ class ApiAccessKeyCache extends CacheBase{ ...@@ -21,6 +22,10 @@ class ApiAccessKeyCache extends CacheBase{
return JSON.stringify(tmp.data); return JSON.stringify(tmp.data);
} }
} }
}catch (e) {
console.log(e)
}
return null; return null;
} }
} }
......
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