Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuy-node
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
1
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
shuaiguo
5 years ago
Commit
6d33295e811d52fe529f4bcf3391551ef6980935
1 parent
ac27d2dc
fix(product/shop): 增加shopId判断 reviewed by huangtao
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
apps/product/controllers/shop.js
package.json
apps/product/controllers/shop.js
View file @
6d33295
...
...
@@ -25,7 +25,7 @@ exports.index = (req, res, next) => {
_
.
isEmpty
(
req
.
query
)
?
null
:
req
.
query
));
}
if
(
isNaN
(
+
shopId
))
{
if
(
shopId
&&
isNaN
(
+
shopId
))
{
return
res
.
redirect
(
301
,
'/404'
);
}
...
...
package.json
View file @
6d33295
{
"name"
:
"yohobuy-node"
,
"version"
:
"6.9.1
3
"
,
"version"
:
"6.9.1
4
"
,
"private"
:
true
,
"description"
:
"A New Yohobuy Project With Express"
,
"repository"
:
{
...
...
Please
register
or
login
to post a comment