Commit 8c400cef authored by 谢永靖's avatar 谢永靖

17066 小薪意开放ios

parent 9c613651
Pipeline #44240 failed with stage
in 39 seconds
...@@ -542,12 +542,12 @@ class ProductService extends Service { ...@@ -542,12 +542,12 @@ 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'])) { // if ([ 257 ].includes(ctx.helper.toInt(v.business_id)) && /ios|iphone/i.test(ctx.request.header['user-agent'])) {
ctx.logger.info( // ctx.logger.info(
'filter_ua_business 11111 ' // 'filter_ua_business 11111 '
); // );
continue; // continue;
} // }
if ([ 103 ].includes(ctx.helper.toInt(v.business_id)) && /ios|iphone/i.test(ctx.request.header['user-agent'])) { if ([ 103 ].includes(ctx.helper.toInt(v.business_id)) && /ios|iphone/i.test(ctx.request.header['user-agent'])) {
ctx.logger.info( ctx.logger.info(
'filter_ua_business 11111 ' 'filter_ua_business 11111 '
...@@ -700,12 +700,12 @@ class ProductService extends Service { ...@@ -700,12 +700,12 @@ 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----------')
if ([ 257 ].includes(ctx.helper.toInt(v.business_id)) && /ios|iphone/i.test(ctx.request.header['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(
'filter_ua_business 11111' // 'filter_ua_business 11111'
); // );
continue; // continue;
} // }
if ([ 103 ].includes(ctx.helper.toInt(v.business_id)) && /ios|iphone/i.test(ctx.request.header['user-agent'])) { if ([ 103 ].includes(ctx.helper.toInt(v.business_id)) && /ios|iphone/i.test(ctx.request.header['user-agent'])) {
ctx.logger.info( ctx.logger.info(
'filter_ua_business 11111 ' 'filter_ua_business 11111 '
......
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