Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
黄成意
/
php_frq_api
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
d7438df8
authored
Mar 05, 2021
by
hcy001
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
1
parent
1d20524a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
5 deletions
app/Model/QuoteModel.php
app/Model/QuoteModel.php
View file @
d7438df8
...
...
@@ -248,7 +248,6 @@ class QuoteModel extends Model
// 报价导入
public
function
import
(
$input
)
{
$inquiry_id
=
@
$input
[
"inquiry_id"
];
$file
=
$_FILES
[
'file'
];
// $request->file('file')
$filePath
=
$file
[
'tmp_name'
];
// 临时路径
...
...
@@ -261,14 +260,10 @@ class QuoteModel extends Model
if
(
empty
(
$excel
))
return
[
1
,
'未获取到模板内容,请检查模板内容数据格式'
];
$map
=
Config
(
'quote.import_quote_map'
);
if
(
count
(
$map
)
!=
count
(
$excel
[
0
]))
return
[
2
,
'导入模板错误'
];
$excel
=
$this
->
handleExcelData
(
$excel
,
$map
);
// 处理数据
print_r
(
$excel
);
$valid
=
$this
->
excelValid
(
$excel
);
// 验证excel内容
if
(
$valid
[
0
]
!=
0
)
return
$valid
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment