Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYPC
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
2
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
周少峰
9 years ago
Commit
e0a3bc1f06b7c94d6d589d31a8488c34a4706bd7
1 parent
43647a7d
recent product review
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
yohobuy/www.yohobuy.com/application/models/Product/Search.php
yohobuy/www.yohobuy.com/application/models/Product/Search.php
View file @
e0a3bc1
...
...
@@ -398,8 +398,8 @@ class SearchModel
}
$product
[
'url'
]
=
Helpers
::
getUrlBySkc
(
$productVal
[
'product_id'
],
$product
[
'default_goods'
],
$productVal
[
'cn_alphabet'
]);
$product
[
'pic_url'
]
=
Images
::
getImageUrl
(
$product
[
'default_image'
],
150
,
200
);
$product
[
'market_price'
]
=
$productVal
[
'market_price'
]
!=
$productVal
[
'sales_price'
]
?
$productVal
[
'market_price'
]
:
''
;
$product
[
'price'
]
=
$productVal
[
'sales_price'
];
$product
[
'market_price'
]
=
$productVal
[
'market_price'
]
!=
$productVal
[
'sales_price'
]
?
'¥'
.
$productVal
[
'market_price'
]
:
''
;
$product
[
'price'
]
=
'¥'
.
$productVal
[
'sales_price'
];
$product
[
'product_name'
]
=
$productVal
[
'product_name'
];
unset
(
$product
[
'default_goods'
]);
unset
(
$product
[
'default_image'
]);
...
...
@@ -408,6 +408,7 @@ class SearchModel
}
}
ksort
(
$result
);
$result
=
array_values
(
$result
);
return
$result
;
}
...
...
Please
register
or
login
to post a comment