作者 lyh

Merge branch 'master' of http://47.244.231.31:8099/zhl/globalso-v6 into lyh-server

@@ -67,7 +67,7 @@ class SyncSubmitTask extends Command @@ -67,7 +67,7 @@ class SyncSubmitTask extends Command
67 $task_info->remark = $e->getMessage(); 67 $task_info->remark = $e->getMessage();
68 $task_info->save(); 68 $task_info->save();
69 69
70 - $this->output('任务完成'); 70 + $this->output('任务完成' . $e->getMessage());
71 } catch (\Exception $e) { 71 } catch (\Exception $e) {
72 72
73 $task_info->retry = $task_info->retry + 1; 73 $task_info->retry = $task_info->retry + 1;
@@ -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 }