作者 赵彬吉

update

... ... @@ -90,7 +90,7 @@ class SyncSubmitTaskService
}
//直接根据 语种缩写 去匹配 国家简码 不搞麻烦了,将就用
$tran_country = WordCountry::getCountryByIso2($tran_visit)['chinese_name'] ?? '';
if ($tran_visit !='en' && ($checkIpCountry['country'] == '美国' || $tran_country != $checkIpCountry['country'])) {
if ($tran_visit && $tran_visit !='en' && ($checkIpCountry['country'] == '美国' || $tran_country != $checkIpCountry['country'])) {
throw new InquiryFilterException( '判定为蜘蛛爬取小语种');
}
}
... ...