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

1

parent df08d56d
Pipeline #36067 passed with stage
in 4 seconds
...@@ -534,17 +534,17 @@ class ProductService extends Service { ...@@ -534,17 +534,17 @@ class ProductService extends Service {
} }
ctx.logger.info("get_phone_by_user_place:" + place_cid); ctx.logger.info("get_phone_by_user_place:" + place_cid);
// end // end
const ret = [];
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( ctx.logger.info(
"filter_ua_business: " + "filter_ua_business: " +
ctx.request.header.user_agent + ctx.request.header.user_agent +
"--business_id--" + "--business_id--" +
v.business_id v.business_id
); );
const ret = [];
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)) {
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