|
...
|
...
|
@@ -172,8 +172,8 @@ class SyncSubmitTaskService |
|
|
|
throw new InquiryFilterException('项目不存在');
|
|
|
|
}
|
|
|
|
|
|
|
|
// 测试环境返回信息
|
|
|
|
if (FALSE !== strpos($domain, 'globalso.site') && !$project->is_record_test_visit) {
|
|
|
|
// 访问记录过滤测试环境
|
|
|
|
if ($type == SyncSubmitTask::TYPE_VISIT && FALSE !== strpos($domain, 'globalso.site') && !$project->is_record_test_visit) {
|
|
|
|
throw new InquiryFilterException('测试环境过滤');
|
|
|
|
}
|
|
|
|
|
|
...
|
...
|
@@ -181,8 +181,8 @@ class SyncSubmitTaskService |
|
|
|
throw new InquiryFilterException('127.0.0.1过滤');
|
|
|
|
}
|
|
|
|
$country = self::getCountryByIp($ip);
|
|
|
|
//访问记录才过滤是否国内
|
|
|
|
if ($country == "中国" && !$project->is_record_china_visit && $type == SyncSubmitTask::TYPE_VISIT){
|
|
|
|
//访问记录过滤国内
|
|
|
|
if ($type == SyncSubmitTask::TYPE_VISIT && $country == "中国" && !$project->is_record_china_visit){
|
|
|
|
throw new InquiryFilterException('中国内地过滤');
|
|
|
|
}
|
|
|
|
return [
|
...
|
...
|
|