|
...
|
...
|
@@ -30,7 +30,7 @@ class ImportLogic extends BaseLogic |
|
|
|
$this->fail('导入文件格式必须为csv');
|
|
|
|
}
|
|
|
|
$domain = $this->param['domain'];
|
|
|
|
if (strpos($domain, 'https') === false || strpos($domain, 'http') == false) {
|
|
|
|
if (strpos($domain, 'https') === false && strpos($domain, 'http') == false) {
|
|
|
|
$this->fail('请输入完整的采集页面地址');
|
|
|
|
}
|
|
|
|
$domain_arr = parse_url($domain);
|
|
...
|
...
|
@@ -41,7 +41,6 @@ class ImportLogic extends BaseLogic |
|
|
|
$this->param['domain'] = $domain_arr['host'];
|
|
|
|
$this->param['project_id'] = $this->user['project_id'];
|
|
|
|
$this->param['user_id'] = $this->user['id'];
|
|
|
|
$this->param['status'] = 9;
|
|
|
|
$rs = $this->model->add($this->param);
|
|
|
|
if ($rs === false) {
|
|
|
|
$this->fail('error');
|
...
|
...
|
|