作者 赵彬吉

update

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