Browse Source

店铺-新用户统计-修改搜索的正则匹配

master
liangyuyan 5 years ago
parent
commit
ce4b9b8a4c
  1. 2
      app/Admin/Repositories/StoreUserReport.php

2
app/Admin/Repositories/StoreUserReport.php

@ -129,7 +129,7 @@ class StoreUserReport extends EloquentRepository
} }
if($storeIds){ if($storeIds){
$storeIds = trim($storeIds,','); $storeIds = trim($storeIds,',');
$expression = "/^[,1-9]+$/";
$expression = "/^[,0-9]+$/u";
preg_match($expression,$storeIds,$matches); preg_match($expression,$storeIds,$matches);
$storeIds = $matches[0] ?? 0; $storeIds = $matches[0] ?? 0;

Loading…
Cancel
Save