Authored by ccbikai(👎🏻🍜)

add cache

... ... @@ -274,7 +274,10 @@ const order = (params) => {
return api.get('', _.assign({
method: 'app.SpaceOrders.closeReasons'
}, params), {code: 200}).then((result) => {
}, params), {
cache: true,
code: 200
}).then((result) => {
if (result.data) {
Object.assign(finalResult, {cancelReason: result.data});
... ...
... ... @@ -13,6 +13,9 @@ const logger = global.yoho.logger;
const closeReasons = () => {
return api.get('', {
method: 'app.SpaceOrders.closeReasons'
}, {
cache: true,
code: 200
}).then((result) => {
if (result && result.code === 200) {
return result.data;
... ...