|
...
|
...
|
@@ -34,6 +34,9 @@ function rpc(host='',act,data={},fouce=false,header={},silence=true,cachetime=0, |
|
|
|
if(param){
|
|
|
|
cache_key+='?'+param.substr((param.length-1)*-1);
|
|
|
|
}
|
|
|
|
if(fouce=='clear' || fouce=='clean'){
|
|
|
|
return wx.removeStorageSync(cache_key);
|
|
|
|
}
|
|
|
|
if(!fouce && cachetime!=0){//优先使用缓存
|
|
|
|
let getCache= cache(cache_key);
|
|
|
|
if(getCache!=-99999){
|
...
|
...
|
|