Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
newShopBack
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
newshop
newShopBack
Commits
649b2399
Commit
649b2399
authored
Nov 27, 2019
by
孙磊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
门店服务类目上传优化
Signed-off-by:
sunlei
<
sunlei@romens.cn
>
parent
77e46997
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
BranchServiceTypeController.php
...end/controllers/v1/branch/BranchServiceTypeController.php
+3
-2
branch_service_type_import.xls
template/branch_service_type_import.xls
+0
-0
No files found.
backend/controllers/v1/branch/BranchServiceTypeController.php
View file @
649b2399
...
...
@@ -258,8 +258,9 @@ class BranchServiceTypeController extends BaseController
throw
new
HttpException
(
422
,
json_encode
(
$fileInfo
));
}
$arr
=
Helper
::
newSpreadsheet
(
$fileInfo
[
'INFO'
][
0
])
->
getRows
(
false
,[
'rowOffset'
=>
1
,
'columns'
=>
4
]);
$arr
=
Helper
::
newSpreadsheet
(
$fileInfo
[
'INFO'
][
0
])
->
getRows
(
false
,[
'rowOffset'
=>
2
,
'columns'
=>
4
]);
//$rows = Helper::newSpreadsheet($fileInfo['INFO'][0])->getRows();
//$arr=array_slice($rows,2);
$model
=
new
$this
->
modelClass
();
$create_data
=
[];
//待新建数组
$update_data
=
[];
//待更新数组
...
...
template/branch_service_type_import.xls
0 → 100644
View file @
649b2399
File added
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