Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation
This project
Loading...
Sign in
platform
/
tx1_box_serv
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 01071351
authored
Jan 14, 2019
by
刘航
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
【BUG】解决遗撒无法保存图片的问题
1 parent
12c715c6
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
code/tx1_box_serv/apps/commons/event_to_local.py
code/tx1_box_serv/apps/commons/event_to_local.py
View file @
0107135
...
...
@@ -46,7 +46,7 @@ class EventToLocalUtil(object):
index
=
0
for
pic
in
picsArr
:
picPath
=
''
if
'ofilename'
in
pic
:
if
'ofilename'
in
pic
and
len
(
pic
[
'ofilename'
])
>
0
:
if
index
==
0
:
for
s
in
(
pic
[
'ofilename'
]
.
split
(
'.'
))[
0
:
-
1
]:
if
len
(
infoPath
)
>
0
:
...
...
@@ -61,7 +61,7 @@ class EventToLocalUtil(object):
dataDict
[
'event_refid'
]
=
str
(
uuid
.
uuid1
())
if
index
==
0
:
infoPath
=
dataDict
[
'event_refid'
]
picPath
=
'{}
-{}{}'
.
format
(
dataDict
[
'event_refid'
]
,
index
,
'.jpg'
)
picPath
=
'{}
/{}-{}{}'
.
format
(
basePath
,
dataDict
[
'event_refid'
]
,
index
,
'.jpg'
)
else
:
self
.
__logerror
(
'saveEventToLocal cannot find ofilename or event_refid,
\
picPath cannot generate, will not save pic'
)
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment