Commit 6e74ed06 authored by 谢永靖's avatar 谢永靖

1

parent 739e1a57
Pipeline #36078 passed with stage
in 4 seconds
...@@ -542,12 +542,9 @@ class ProductService extends Service { ...@@ -542,12 +542,9 @@ class ProductService extends Service {
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 ([ 257 ].includes(ctx.helper.toInt(v.business_id)) && /ios|iphone/i.test(ctx.request.header['user-agent'])) {
ctx.logger.info( ctx.logger.info(
v.business_id + 'filter_ua_business22222: ' 'filter_ua_business 11111 '
);
if ([ 225 ].includes(ctx.helper.toInt(v.business_id)) && /ios|iphone/i.test(ctx.request.header['user-agent'])) {
ctx.logger.info(
'filter_ua_business11111: '
); );
continue; continue;
} }
...@@ -697,13 +694,9 @@ class ProductService extends Service { ...@@ -697,13 +694,9 @@ class ProductService extends Service {
ctx.logger.info('check loan city:' + city); ctx.logger.info('check loan city:' + city);
for (const v of products) { for (const v of products) {
// ctx.logger.info('imh------begin----------') // ctx.logger.info('imh------begin----------')
ctx.logger.info(
v.business_id + 'filter_ua_business22222: '
);
if ([ 225 ].includes(ctx.helper.toInt(v.business_id)) && /ios|iphone/i.test(ctx.request.header['user-agent'])) { if ([ 225 ].includes(ctx.helper.toInt(v.business_id)) && /ios|iphone/i.test(ctx.request.header['user-agent'])) {
ctx.logger.info( ctx.logger.info(
'filter_ua_business11111: ' 'filter_ua_business 11111'
); );
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