Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
data-collect-api
Overview
Overview
Details
Activity
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wenyi.chen
data-collect-api
Commits
f0ccd835
Commit
f0ccd835
authored
Apr 16, 2024
by
wenyi.chen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
v1
parent
c2f2e0f0
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
6 deletions
+11
-6
app/api/controller/ExcelFile.php
+7
-4
runtime/session/sess_67f9a97a0a2e107eaf5d56b85fd96c86
+2
-0
runtime/session/sess_acb0c381fd1d72e898f32fac9f3f1f6c
+2
-2
No files found.
app/api/controller/ExcelFile.php
View file @
f0ccd835
...
...
@@ -291,6 +291,7 @@ class ExcelFile extends BaseController
array_push
(
$extendValue
,[
$kk
[
'value'
]]);
}
}
// 用户填写端自定义
foreach
(
$value
[
'userData'
]
as
$kk
){
if
(
in_array
(
$kk
[
'name'
],
$extendUserName
)){
...
...
@@ -420,10 +421,12 @@ class ExcelFile extends BaseController
];
array_push
(
$normExtendSql
,
$normExtendArr
);
}
// 指标扩展信息
$sqlInser
=
Db
::
name
(
'norm_extend'
)
->
insertAll
(
$normExtendSql
);
if
(
empty
(
$sqlInser
)){
$control
++
;
foreach
(
$normExtendSql
as
$value
){
// 指标扩展信息
$sqlInser
=
Db
::
name
(
'norm_extend'
)
->
insertGetId
(
$value
);
if
(
empty
(
$sqlInser
)){
$control
++
;
}
}
}
// 文件格式化有问题
...
...
runtime/session/sess_67f9a97a0a2e107eaf5d56b85fd96c86
0 → 100644
View file @
f0ccd835
a:1:{s:5:"users";a:10:{s:2:"id";i:1;s:4:"name";s:12:"开发人员";s:5:"phone";s:11:"18417180202";s:7:"account";s:5:"admin";s:8:"password";s:32:"e10adc3949ba59abbe56e057f20f883e";s:6:"status";i:1;s:4:"type";i:1;s:11:"create_time";s:1:"1";s:5:"email";s:18:"wesley_prc@163.com";s:13:"department_id";i:3;}}
\ No newline at end of file
runtime/session/sess_acb0c381fd1d72e898f32fac9f3f1f6c
View file @
f0ccd835
a:1:{s:5:"users";a:10:{s:2:"id";i:3;s:4:"name";s:10:"管理员1";s:5:"phone";s:11:"18417180202";s:7:"account";s:8:"admin001";s:8:"password";s:32:"e10adc3949ba59abbe56e057f20f883e";s:6:"status";i:1;s:4:"type";i:1;s:11:"create_time";s:10:"1709196711";s:5:"email";s:0:"";s:13:"department_id";i:1;}}
\ No newline at end of file
a:1:{s:5:"users";a:10:{s:2:"id";i:1;s:4:"name";s:12:"开发人员";s:5:"phone";s:11:"18417180202";s:7:"account";s:5:"admin";s:8:"password";s:32:"e10adc3949ba59abbe56e057f20f883e";s:6:"status";i:1;s:4:"type";i:1;s:11:"create_time";s:1:"1";s:5:"email";s:18:"wesley_prc@163.com";s:13:"department_id";i:3;}}
\ No newline at end of file
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