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 {
const ret = [];
for (const v of loanList) {
// 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(
'filter_ua_business 11111 '
);
continue;
}
// if ([ 257 ].includes(ctx.helper.toInt(v.business_id)) && /ios|iphone/i.test(ctx.request.header['user-agent'])) {
// ctx.logger.info(
// 'filter_ua_business 11111 '
// );
// continue;
// }
if ([ 103 ].includes(ctx.helper.toInt(v.business_id)) && /ios|iphone/i.test(ctx.request.header['user-agent'])) {
ctx.logger.info(
'filter_ua_business 11111 '
......@@ -700,12 +700,12 @@ class ProductService extends Service {
ctx.logger.info('check loan city:' + city);
for (const v of products) {
// ctx.logger.info('imh------begin----------')
if ([ 257 ].includes(ctx.helper.toInt(v.business_id)) && /ios|iphone/i.test(ctx.request.header['user-agent'])) {
ctx.logger.info(
'filter_ua_business 11111'
);
continue;
}
// if ([ 257 ].includes(ctx.helper.toInt(v.business_id)) && /ios|iphone/i.test(ctx.request.header['user-agent'])) {
// ctx.logger.info(
// 'filter_ua_business 11111'
// );
// continue;
// }
if ([ 103 ].includes(ctx.helper.toInt(v.business_id)) && /ios|iphone/i.test(ctx.request.header['user-agent'])) {
ctx.logger.info(
'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