正在显示
1 个修改的文件
包含
1 行增加
和
2 行删除
| @@ -30,7 +30,7 @@ class ImportLogic extends BaseLogic | @@ -30,7 +30,7 @@ class ImportLogic extends BaseLogic | ||
| 30 | $this->fail('导入文件格式必须为csv'); | 30 | $this->fail('导入文件格式必须为csv'); |
| 31 | } | 31 | } |
| 32 | $domain = $this->param['domain']; | 32 | $domain = $this->param['domain']; |
| 33 | - if (strpos($domain, 'https') === false || strpos($domain, 'http') == false) { | 33 | + if (strpos($domain, 'https') === false && strpos($domain, 'http') == false) { |
| 34 | $this->fail('请输入完整的采集页面地址'); | 34 | $this->fail('请输入完整的采集页面地址'); |
| 35 | } | 35 | } |
| 36 | $domain_arr = parse_url($domain); | 36 | $domain_arr = parse_url($domain); |
| @@ -41,7 +41,6 @@ class ImportLogic extends BaseLogic | @@ -41,7 +41,6 @@ class ImportLogic extends BaseLogic | ||
| 41 | $this->param['domain'] = $domain_arr['host']; | 41 | $this->param['domain'] = $domain_arr['host']; |
| 42 | $this->param['project_id'] = $this->user['project_id']; | 42 | $this->param['project_id'] = $this->user['project_id']; |
| 43 | $this->param['user_id'] = $this->user['id']; | 43 | $this->param['user_id'] = $this->user['id']; |
| 44 | - $this->param['status'] = 9; | ||
| 45 | $rs = $this->model->add($this->param); | 44 | $rs = $this->model->add($this->param); |
| 46 | if ($rs === false) { | 45 | if ($rs === false) { |
| 47 | $this->fail('error'); | 46 | $this->fail('error'); |
-
请 注册 或 登录 后发表评论