Authored by 刘传洋

add cache time

... ... @@ -86,7 +86,7 @@ const getProductList = (params) => {
cache.set(cKey, Object.assign({}, {
filter: result.data.filter,
standard: result.data.standard
}));
}), 3600);
}
}
return result;
... ... @@ -127,7 +127,7 @@ const getSortList = (params) => {
return yohoApi.get('', finalParams).then(ret => {
if(ret && ret.code === 200) {
cache.set(cKey, ret);
cache.set(cKey, ret, 3600);
}
return ret;
});
... ... @@ -243,7 +243,7 @@ const getBrandShop = (query) => {
return yohoApi.get('', finalParams).then(ret => {
if (ret && ret.code === 200) {
cache.set(cKey, ret.data);
cache.set(cKey, ret.data, 3600);
return ret.data;
}
});return
... ... @@ -280,7 +280,7 @@ const getShopsByBrandId = bid => {
return yohoApi.get('', finalParams).then(ret => {
if (ret && ret.code === 200) {
cache.set(cKey, ret.data);
cache.set(cKey, ret.data, 3600);
return ret.data;
}
});
... ...