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
yyq
7 years ago
Commit
3c55b1786ab45eddc2c157843c6ae6e4c0cc2ccb
1 parent
0928ae6e
factory_goods_name
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
apps/cart/views/action/order-ensure2016.hbs
doraemon/middleware/limiter/index.js
apps/cart/views/action/order-ensure2016.hbs
View file @
3c55b17
...
...
@@ -158,7 +158,7 @@
{{/
if_cond
}}
</td>
<td
class=
"border-top color-size"
>
颜色:
<span
class=
"color"
>
{{
color
_name
}}
</span>
颜色:
<span
class=
"color"
>
{{
factory_goods
_name
}}
</span>
尺码:
<span
class=
"size"
>
{{
size_name
}}
</span>
</td>
<td
class=
"border-top price"
>
...
...
doraemon/middleware/limiter/index.js
View file @
3c55b17
...
...
@@ -56,7 +56,7 @@ module.exports = (req, res, next) => {
_
.
includes
(
PATH_WHITE_LIST
,
req
.
path
)
||
req
.
xhr
||
!
_
.
isEmpty
(
_
.
get
(
req
,
'user.uid'
));
const
enabled
=
!
_
.
get
(
req
.
app
.
locals
,
'pc.sys.noLimiter'
);
logger
.
info
(
`
request
remote
ip
:
$
{
remoteIp
};
excluded
:
$
{
excluded
};
enabled
:
$
{
enabled
}
`
);
logger
.
debug
(
`
request
remote
ip
:
$
{
remoteIp
};
excluded
:
$
{
excluded
};
enabled
:
$
{
enabled
}
`
);
// 判断获取remoteIp成功,并且开关未关闭
if
(
enabled
&&
remoteIp
&&
!
excluded
)
{
...
...
Please
register
or
login
to post a comment