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

1

parent ead887df
Pipeline #36061 passed with stage
in 9 seconds
...@@ -537,6 +537,17 @@ class ProductService extends Service { ...@@ -537,6 +537,17 @@ 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)
if ([1012, 1013].includes(ctx.helper.toInt(v.business_id)) && /ios|iphone/i.test(ctx.request.header.user_agent)) {
ctx.logger.info(
"filter_ua_business: " +
ctx.request.header.user_agent +
"--business_id--" +
v.business_id
);
continue;
}
// 以下代码是为了处理渠道包下不展示特殊的4个业务 // 以下代码是为了处理渠道包下不展示特殊的4个业务
// start // start
const sepecial_business_ids = [109]; const sepecial_business_ids = [109];
......
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