Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuywap-node
·
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
郭成尧
8 years ago
Commit
f454fc76513bd89f5cf324e31e7bba3bc95c1a10
1 parent
fdf86cd8
'brand-id-null'
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
apps/product/models/list.js
apps/product/models/list.js
View file @
f454fc7
...
...
@@ -658,6 +658,10 @@ const getBrandIntro = (brandId, uid) => {
uid
:
uid
};
if
(
!
brandId
||
brandId
===
''
||
brandId
===
'undefined'
)
{
return
Promise
.
resolve
({});
}
return
api
.
get
(
''
,
_
.
assign
({
method
:
'app.brand.getBrandIntro'
,
brand_id
:
brandId
...
...
@@ -902,6 +906,10 @@ const shopCouponsList = (params) => {
* @return {[array]}
*/
const
brandCouponsList
=
(
params
)
=>
{
if
(
!
params
.
brand_id
||
params
.
brand_id
===
''
||
params
.
brand_id
===
'undefined'
)
{
return
Promise
.
resolve
([]);
}
return
api
.
get
(
''
,
Object
.
assign
({
method
:
'app.brand.getBrandIntro'
},
params
)).
then
(
result
=>
{
...
...
Please
register
or
login
to post a comment