Commit deb341bb authored by 谢永靖's avatar 谢永靖

1

parent d6f81ac8
Pipeline #36069 passed with stage
in 4 seconds
...@@ -536,13 +536,13 @@ class ProductService extends Service { ...@@ -536,13 +536,13 @@ class ProductService extends Service {
// end // end
ctx.logger.info( ctx.logger.info(
"filter_ua_business: " + "filter_ua_business: " +
ctx.request.header.user_agent ctx.request.header['user-agent']
); );
const ret = []; const ret = [];
for (const v of loanList) { for (const v of loanList) {
// preg_match('/ios|iphone/i', $user_agent) // preg_match('/ios|iphone/i', $user_agent)
if ([1012, 1013].includes(ctx.helper.toInt(v.business_id)) && /ios|iphone/i.test(ctx.request.header.user_agent)) { if ([1012, 1013].includes(ctx.helper.toInt(v.business_id)) && /ios|iphone/i.test(ctx.request.header['user-agent'])) {
continue; continue;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment