|
...
|
...
|
@@ -25,6 +25,11 @@ class ImportLogic extends BaseLogic |
|
|
|
*/
|
|
|
|
public function addImportTask()
|
|
|
|
{
|
|
|
|
$ext = explode('.', $this->param['file_url']);
|
|
|
|
if (end($ext) != 'csv') {
|
|
|
|
$this->fail('导入文件格式必须为csv');
|
|
|
|
}
|
|
|
|
|
|
|
|
$this->param['project_id'] = $this->user['project_id'];
|
|
|
|
$this->param['user_id'] = $this->user['id'];
|
|
|
|
$rs = $this->model->add($this->param);
|
...
|
...
|
|