|
...
|
...
|
@@ -118,7 +118,7 @@ function __api(){ |
|
|
|
tmpApi[keys[0]][keys[1]]=tmpApi[keys[0]][keys[1]]?tmpApi[keys[0]][keys[1]]:{};
|
|
|
|
tmpApi[keys[0]][keys[1]][keys[2]]=function(data,fouce=false,header){
|
|
|
|
//console.log('api[key].host',api[key].host);
|
|
|
|
return rpc(api[key].host,key,data,fouce,header,
|
|
|
|
return rpc(api[key].host,api[key].alias||key,data,fouce,header,
|
|
|
|
api[key].silence,api[key].cachetime,api[key].timeout);
|
|
|
|
}
|
|
|
|
}
|
|
...
|
...
|
@@ -135,8 +135,8 @@ function __api(){ |
|
|
|
tmpApi[keys[0]]=tmpApi[keys[0]]?tmpApi[keys[0]]:{};
|
|
|
|
tmpApi[keys[0]][keys[1]]=tmpApi[keys[0]][keys[1]]?tmpApi[keys[0]][keys[1]]:{};
|
|
|
|
tmpApi[keys[0]][keys[1]][keys[2]]=function(data,fouce=false,header){
|
|
|
|
//console.log('api[key].host',api[key].host);
|
|
|
|
return rpc(api[key].host,key,data,fouce,header,
|
|
|
|
//console.log('api[key].host',api[key]);
|
|
|
|
return rpc(api[key].host,api[key].alias||key,data,fouce,header,
|
|
|
|
api[key].silence,api[key].cachetime,api[key].timeout);
|
|
|
|
}
|
|
|
|
}
|
...
|
...
|
|