Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tallty_import_export
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open-source
tallty_import_export
Commits
9a33c7e2
Commit
9a33c7e2
authored
Jul 04, 2023
by
Ivan Lan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 错误取值
parent
27c3a905
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
import.rb
lib/tallty_import_export/import.rb
+2
-2
No files found.
lib/tallty_import_export/import.rb
View file @
9a33c7e2
...
...
@@ -159,7 +159,7 @@ module TalltyImportExport
elsif
k_arr
.
size
>
1
# hash设置
attr
=
k_arr
.
first
val
=
{
k_arr
[
1
..-
1
].
join
(
'.'
)
=>
v
}.
to_nested_hash
val
=
{
k_arr
[
1
..-
1
].
join
(
'.'
)
=>
v
al
}.
to_nested_hash
h
[
attr
.
to_sym
]
||=
{}
h
[
attr
.
to_sym
].
deep_merge!
val
else
...
...
@@ -172,7 +172,7 @@ module TalltyImportExport
case
header
[
:attr_type
].
to_s
when
'file'
if
val
.
is_a?
(
String
)
val
=
val
.
split
(
"
\n
"
).
map
do
|
url
|
val
.
split
(
"
\n
"
).
map
do
|
url
|
params
=
url
.
include?
(
'?'
)
?
CGI
::
parse
(
url
.
split
(
'?'
).
last
)
:
{}
{
url:
url
,
...
...
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