Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohoblk-wap
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
郭成尧
9 years ago
Commit
d8d4f2f230babb3ff283b207fc91a682dccfde17
1 parent
5756cc8d
'去掉部分logger'
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
16 deletions
apps/channel/models/brand.js
apps/editorial/models/list.js
apps/product/models/shop.js
apps/channel/models/brand.js
View file @
d8d4f2f
...
...
@@ -7,7 +7,6 @@
'use strict'
;
const
brandApi
=
require
(
'./brand-api'
);
const
logger
=
global
.
yoho
.
logger
;
const
_
=
require
(
'lodash'
);
const
camelCase
=
global
.
yoho
.
camelCase
;
...
...
@@ -57,8 +56,6 @@ const getBrandListData = params => {
return
brandApi
.
getBrandListOriginData
(
params
).
then
(
result
=>
{
if
(
result
.
data
)
{
Object
.
assign
(
finalResult
,
handleBrandList
(
result
.
data
.
all_list
));
}
else
{
logger
.
error
(
'getBrandListOriginData api data is null'
);
}
return
finalResult
;
...
...
apps/editorial/models/list.js
View file @
d8d4f2f
...
...
@@ -6,7 +6,6 @@
*/
'use strict'
;
const
logger
=
global
.
yoho
.
logger
;
const
editorialListApi
=
require
(
'./list-api'
);
const
camelCase
=
global
.
yoho
.
camelCase
;
...
...
@@ -27,8 +26,6 @@ const editorialList = params => {
},
code
:
200
});
}
else
{
logger
.
error
(
'getEitorialListData api no data'
);
}
return
camelCase
(
finalResult
);
...
...
apps/product/models/shop.js
View file @
d8d4f2f
...
...
@@ -66,14 +66,10 @@ const getShopData = params => {
});
}
});
}
else
{
logger
.
error
(
'getShopsDecoratorList api no data'
);
}
return
finalResult
;
});
}
else
{
logger
.
error
(
'getShopInfoData api no data'
);
}
return
finalResult
;
});
...
...
@@ -87,8 +83,6 @@ const getShopData = params => {
logger
.
info
(
'brand has no shop'
);
}
return
finalResult
;
}
else
{
logger
.
error
(
'getBrandInfoByDomain api no data'
);
}
return
finalResult
;
...
...
@@ -121,13 +115,9 @@ const getBrandShopGoodsData = params => {
},
code
:
200
};
}
else
{
logger
.
error
(
'getBrandShopGoodsOriginData api no data'
);
}
return
camelCase
(
finalResult
);
});
}
else
{
logger
.
error
(
'getBrandInfoByDomain api no data'
);
}
return
camelCase
(
finalResult
);
});
...
...
Please
register
or
login
to post a comment